Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>My Example</title>
- <!-- CSS -->
- <style>
- /* Box styles */
- .myBox {
- border: none;
- padding: 5px;
- font: 24px/36px sans-serif;
- width: 250px;
- height: 250px;
- overflow: scroll;
- overflow-x: hidden;
- overflow-y: scroll;
- }
- /* Scrollbar styles */
- ::-webkit-scrollbar {
- width: 12px;
- height: 12px;
- }
- ::-webkit-scrollbar-track {
- border: 1px solid #000;
- border-radius: 10px;
- }
- ::-webkit-scrollbar-thumb {
- background: #000;
- border-radius: 10px;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: pink;
- }
- </style>
- </head>
- <body>
- <!-- HTML -->
- <div class="myBox">
- <p>Put your text here.</p>
- <p>Please credit me (@baeyhkun on twt) if used.</p>
- Text text text text text text
- text text text text text text
- text text text text text text
- text text text text text text
- </div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement