| Indenting Text |
Indenting the first line of a paragraph is easy. Simply use a non-breaking space ( ) or two in front of the first word. There is currently no HTML code for a tab.
Indenting a block of text can be a little more tricky. The only proper way to do it is to use 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. For more information, see Jalfrezi's section on style sheets. The following example shows how to indent a paragraph by 50 pixels.
<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>
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.
Other methods of indenting include use of <BLOCKQUOTE>, which browsers often render by indenting from the left and the right. You could also enclose your text inside a pair of <UL></UL> tags. While this method often has the deseired effect, particularly with Netscape and Microsoft browsers, it is essentially incorrect unless the text in question is part of a list You must therefore bear in mind that some browsers may not indent text using this method.
|
| Return to Listing |