Monday, August 19, 2013

CSS margin cm value

<html>
<head>
<style type="text/css">
p.ex1 {margin-top:2cm}
</style>
</head>

<body>

<p>A paragraph with no margins specified.</p>
<p class="ex1">A paragraph with a 2cm top margin.</p>
<p>A paragraph with no margins specified.</p>

</body>
</html>

Result


No comments: