Advertisement
ityizhuo

scrollbox with mark

Oct 22nd, 2021
11,965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.41 KB | None | 0 0
  1. <style>
  2.  
  3. #scroll {
  4. width:50%;
  5. height:100px;
  6. background: white;
  7. border: 3px double #ccc;
  8. border-radius: 5px;
  9. padding: 10px;
  10. overflow: auto;
  11. font-family:Times;
  12. font-size:16px;
  13. color: #000;
  14. }
  15.  
  16. mark {
  17. background: #ccc;
  18. border: 1px solid #000;
  19. border-radius: 3px;
  20. padding: 0 5px 0 5px;
  21. color: #000;
  22. </style>
  23.  
  24. <div id="scroll">
  25. <p><mark>hello~</mark> text text text text text text text text </p>
  26. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement