Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. div {
  6. border: 2px solid;
  7. padding: 20px;
  8. width: 300px;
  9. resize: both;
  10. overflow: auto;
  11. }
  12. #r::-webkit-resizer {
  13. border: 2px solid black;
  14.  background: red;
  15.  width: 10px;
  16.  height: 10px;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21.  
  22. <h1>The resize Property</h1>
  23.  
  24. <div id="r">
  25. <p>Let the user resize both the height and the width of this div element.</p>
  26. <p>To resize: Click and drag the bottom right corner of this div element.</p>
  27. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement