Advertisement
KodingKid

How to use overflow in CSS - Basic Scripting #28

Jun 23rd, 2021
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.42 KB | None | 0 0
  1. overflow {
  2.   background: black;
  3.   color: white;
  4.   padding: 25px;
  5.   width: 75%;
  6.   height: 100px;
  7.   overflow: scroll;
  8.   border: 5px solid #ccc;
  9. }
  10. <div id="overflow">So, this is a very long text box and so it would be inconvenient to put it on the page, so using box with a scroller may be more convenient and certainly more nicer. This is only 100px so it is quite small and compact but that does not equal bad :)</div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement