Wednesday, September 14, 2011

06 - List of Properties and their Values- 02


Text Spacing
letter-spacing : Letter spacing is spacing define between each letters.
word-spacing: Word spacing is spacing define between letters or words. The value can be a
length(pixel, point, em) or normal.
line-height: Line is height is spacing between two lines, such as a paragraph, without adjusting the size of the font. It can be a number (which specifies a multiple of the font size, so '2' will be two times the font size, for example), a length, a percentage or normal.

Example:

<html>
<head>
</head>

<body>
    <h2 style=" letter-spacing:10px">Space between Letters</h2>
    <h2 style=" word-spacing:10px">Spacing between words</h2>
    <p style="font-size:24px; line-height:3">Space between These two line <br />is 60 pixel define by Line Spacing </p>

</body>
</html>

Output in brower:



powered by multimediagyan ©

No comments:

Post a Comment