Advertisement
here2share

HTML individual padding

Aug 16th, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.44 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. div {
  6.     border: 1px solid black;
  7.     background-color: lightblue;
  8.     padding-top: 50px;
  9.     padding-right: 50px;
  10.     padding-bottom: 50px;
  11.     padding-left: 50px;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16.  
  17. <h2>Using individual padding properties</h2>
  18.  
  19. <div>This div element has a top padding of 50px, a right padding of 50px, a bottom padding of 50px, and a left padding of 50px.</div>
  20.  
  21. </body>
  22. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement