On Fri, 20 May 2005 15:41:29 -0400, Arnie Shafer <[EMAIL PROTECTED]> wrote:

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

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.


If you think you're confused, you should spend some time in my head. I tried both p class and br class.
The p class with padding worked with IE; p class with margin worked with good browsers.
I couldn't get br class to work in IE with padding or margin.
<http://www.dlaakso.com/lead.html>
Someone who actually know what they are doing can explain and/or correct this.
Best,
David Laakso



-- http://www.dlaakso.com/

______________________________________________________________________
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/

Reply via email to