Fishness
01-17-2004, 07:49 PM
i was wondering how to indent text. i looked around for a while but i couldn't find it so i was hoping you guys could help. thanks!
|
View Full Version : indent text? Fishness 01-17-2004, 07:49 PM i was wondering how to indent text. i looked around for a while but i couldn't find it so i was hoping you guys could help. thanks! Loren 01-17-2004, 07:52 PM Try multiple times. Rosey 01-17-2004, 07:59 PM now i'm not one to usually go to w3schools but i found: http://www.w3schools.com/css/pr_text_text-indent.asp burntsushi 01-18-2004, 01:51 AM ^ yup that's the proper way to do it ^ but... there is a "but" ;) If you aren't using correct HTML document structure (as in.. not using the <p> tags properly) then that text-indent property would be useless to you, unless you put the <p> tags around each paragraph of text, like this: <p>This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. </p> <p>This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. </p> That's how it should be. However, if you're not doing it that way, I have another recommendation :), put this in your CSS stuff.... .indent { margin-left: 1.5em; } Then use <span class="indent"></span> In front of any text you want to indent ;) However, my best suggestion is to go with what Rosey said Loren 01-18-2004, 01:43 PM If you don't want every paragraph indented you could just use <p style="text-indent: 20px">Your text for the paragraph </p> Close p is proper but not required. |