Monday, August 19, 2013

CSS margin percent value

<html>
<head>
<style type="text/css">
p.bottommargin {margin-bottom:25%}
</style>
</head>
<body>

<p>This is a paragraph with no margin specified.</p>
<p class="bottommargin">This is a paragraph with a specified bottom margin.</p>
<p>This is a paragraph with no margin specified.</p>

</body>
</html>

Result


No comments: