Padding Shorthand Property in HTML and CSS
SourceCode
<html> <head> <style> div { border: 7px solid purple; padding: 30px 60px 90px 120px; background-color: pink; } </style> </head> <body> <h1>The Padding Shorthand Property (4-values)</h1> <div> <p>This div element has a top padding of 30px.. <p> A right padding of 60px... <p>A bottom padding of 90px... <p>A left padding of 120px..... </p> </div> <br><br> <img src="logo.jpg"/> </body> </html>
Output