Thursday 19 July 2012

How to Specify the space between lines in css


<!DOCTYPE html>
<html>
<head>
<style type="text/css">
p.small {line-height:70%;}
p.big {line-height:200%;}
</style>
</head>

<body>
<p>
standard line-height.<br />
standard line-height.<br />

</p>

<p class="small">
smaller line-height.<br />
smaller line-height.<br />
smaller line-height.<br />
smaller line-height.<br />
</p>

<p class="big">
bigger line-height.<br />
bigger line-height.<br />
bigger line-height.<br />
bigger line-height.<br />
</p>

</body>
</html>

0 Responses to “How to Specify the space between lines in css”

Post a Comment