show-notice
hide-notice

Wednesday 7 August 2013

CSS Margin


Introduction:

The following CSS margin codes demonstrate the various CSS properties you can use to apply styles to the border of any HTML element.Margins define the space around the element. CSS margins are specified in a similar way to borders - they can be set individually for each side, or all sides at once.

Example:
<html>
<head>
<title></title>
</head>
<body>
<div style="border:1px solid blue;">
<p style="border:1px solid orange;margin:20px;">This text has a margin of 20 pixels on all four sides. It is nested within a div with a border to make it easier to see the effect of the margin.</p>
</div>
</body>
</html>

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com