Thanks Ian, and Chris,
I think I got it this time around. Use only a <p> with the class set to how much space I want at the bottom. Is there a simple conversion to go from lf/cr to px. Or should I use some other distance measurement?
Thanks loads! Arnie
----- Original Message ----- From: "Christian Heilmann" <[EMAIL PROTECTED]>
To: "Arnie Shafer" <[EMAIL PROTECTED]>
Cc: "css-discuss [" <css-d@lists.css-discuss.org>
Sent: Friday, May 20, 2005 2:54 PM
Subject: Re: [css-d] Creating line space with out using <be />
I still don't have this simple problem cleared up. I have used a class with the <p> tag and it worked OK, added space(margin-bottom). I tried it using <br class="lf2">. This did not add any space. (I am just using lf2 or lf3 to indicate line feed. It is short and I can remember it.)
I was told that it was because br was an inline element. I bought this hook line and sinker. But now I have refreshed my study and in fact I believe, br, hr, blockquote, headings, divisions,and paragraphs are block elements.
Could someone please explain. Thanks Arnie
It might be because BR does not have any content whatsoever, it is simply a line break. It is much cleaner to embed your text in elements, like paragraphs, as you do structure it that way. BR is more or less a visual element, and has neither semantic value nor any content. My guess is that most browsers rightfully only apply padding and margin when there is something to apply it to.
-- Chris Heilmann Blog: http://www.wait-till-i.com Writing: http://icant.co.uk/ Binaries: http://www.onlinetools.org/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/