Posts

Showing posts with the label padding

CSS Using individual padding properties

Image
CSS Using individual padding properties <!DOCTYPE html> <html> <head> <style> div {     border: 2px solid black;     background-color: lightblue;     padding-top: 60px;     padding-right: 40px;     padding-bottom: 60px;     padding-left: 90px; } </style> </head> <body> <h2>Using individual padding properties</h2> <div>This div element has a top padding of 60px, a right padding of 40px, a bottom padding of 60px, and a left padding of 90px.</div> </body> </html>