Forum Moderators: mack

Message Too Old, No Replies

indent text

indent text

         

meanweaver

5:33 pm on Jun 15, 2004 (gmt 0)

10+ Year Member



I used to use a tag to indent text so it was indented the same amount from both ends, it was so long ago i just cant remeber what it was, i think it was a list command something like <ul> but that only indents from the left.

Regards Ian

pageoneresults

5:42 pm on Jun 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello Ian, you are probably referring to...

<blockquote></blockquote>

Instead of using the above tag, you could always style your

<p></p>
to have text indents by using margin or padding.

p{margin:15px;}

or...

p{padding:15px;}

That will give the paragraphs a 15px margin top, right, bottom and left. If you need different margins on 4 sides, then you would list each one like this...

p{margin:15px 30px 10px 30px;}

The CSS shorthand sequence above is 15px (top), 30px (right), 10px (bottom) and 30px (left).

meanweaver

6:09 pm on Jun 15, 2004 (gmt 0)

10+ Year Member



Thankyou very much for that, as soon as i saw it i remembered it. Had never given it a thought about using css for the indented <p>, I can now give some paragraphs a class name to help with this.

Thanks very much for you help.

Regards Ian

ergophobe

11:19 pm on Jun 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In theory, if it's not actually a blck quote, CSS would be the way to go.

In practice, whatever floats your boat.

Personally, in practice, I go with the theory ;-)

Tom