<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt<br /> ut laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci.<br /></p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut laoreet dolore.</p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut laoreet dolore.</p>
I can't add a margin to "p" because I only need it to apply on the first
paragraph there (with the <br /></p>). I can't add a bottom-margin to all
"br" tags because it would create a margin in the middle of the paragraph
and still would have inconsistencies. What I would like to do is this:
br { display:block; float:left; margin-left:-4px; width:2px;
overflow:hidden; height:1em; }
However, what I would like to do is different from what I can do... That
doesn't seem to work. Not that the :after pseudo class is great across all
browsers, but that doesn't seem to work for me in Firefox either.
br:after { content:" " }
^ Just as a simple example
-----Original Message-----
From: Adam Kuehn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 19, 2005 11:30 AM
To: Chad Calhoun; CSS List
Subject: RE: [css-d] Line break issues
>Yeah, but not every paragraph will have a <br /> at the end of it. Those
>are the cases where I need to do this.
Margins are the way to go, here. Do you need this extra space at
every occurrence of a paragraph, list, etc., or only on some of them?
If on only some of them, you will need to apply a class or use some
kind of contextual selector to single out the ones you want. The
most practical solution will depend on your specific situation. If
you can provide some more details (best: provide a URL), we could
express more definite opinions as to the best method.
--
-Adam Kuehn
______________________________________________________________________
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/