Thanks Ian. That makes sense to me. Arnie
Please visit the Shafer Family Web site at:
http://abshafer.com
----- Original Message ----- From: "Ian Skinner" <[EMAIL PROTECTED]>
To: "Arnie Shafer" <[EMAIL PROTECTED]>
Sent: Friday, May 20, 2005 11:49 AM
Subject: RE: [css-d] Replacing multiple <br />



I believe you are running up against the different ways margin properties behave for block elements <p> and inline elements <br>.


Basically, margin-top and margin-bottom values have no effect on inline elements. They are applied, but they will not vertically push any other content away from the content with margins. The margins will overlap any content above and/or below the content with margins and since margins are transparent this has no visible effect.


-------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA

"C code. C code run. Run code run. Please!"
- Cynthia Dunning

...-----Original Message-----
...From: Arnie Shafer [mailto:[EMAIL PROTECTED]
...Sent: Friday, May 20, 2005 8:38 AM
...To: css-d list
...Subject: [css-d] Replacing multiple <br />
...
...http://abshafer.com/text.html
...
...CSS; style.css
...
...Please see the first main paragraph.
...
...I have been experimenting with replacing multiple br's with margin-bottom
...of varying heights.  For some reason, this code will not work.
...<br class="lf2" /> but this does <p class="lf2">&nbsp;</p>.
...In both cases the css is :
....lf2{
...margin-bottom: 20px;}
...
....lf3{
...margin-bottom: 130px;}
...
...These values are just for "playing."  Thanks for all advice!  Arnie
...Shafer
...
...
...______________________________________________________________________
...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/

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.




______________________________________________________________________ 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