Margin - Shorthand Property 2 - Values CSS - Tryit Editor for Web Developers
Edit This Code:
See Result »
<html> <head> <style> div { border: 10px double red; margin: 120px 250px; background-color: lightgray; color: brown; } h1 { text-align: center; color: red; } </style> </head> <body> <h1>The margin Shorthand Property (2-values)</h1> <div> <p>A top margin of is 120px... <p>A right margin of is 250px.... </p> </div> <img src="logo.jpg"/> </body> </html>
Result: