Sizzling HTML Jalfrezi's Tip of the Day 
  - Indenting text -  

You can indenting a block of text using a style sheet technique. Currently style sheets are supported by Microsoft Internet Explorer 3 and Netscape Navigator 4 upwards, and are likely to be supported by the next generation of all graphical browsers. The following example shows how to indent a paragraph by 50 pixels.

example of code

<P STYLE="margin-left:50px">
The day didn't go too well, too many chocolates and cigarettes. I kept thinking of you and almost walking into lampposts. Why is it so hot? The air coming to the boil, rubbing up against walls and lampposts trying to get rid of it. </P>

how it renders


The day didn't go too well, too many chocolates and cigarettes. I kept thinking of you and almost walking into lampposts. Why is it so hot? The air coming to the boil, rubbing up against walls and lampposts trying to get rid of it.

For more information, see Jalfrezi's section on style sheets.


previous tips of the day