Previous Message
Next Message

<hr> margin problems in ie/win & ie/mac

Sent by Pawel Knapik on 11 March 2005 21:09


On Fri, 11 Mar 2005 15:45:19 -0500 (EST), [EMAIL-REMOVED]
[EMAIL-REMOVED]> wrote:
> I am having a problem with a <hr> adding a 7px bottom margin[seemingly a
> margin] to it's container.
> 
[...]
> hr.bighr { clear: left; border: none; color: #263B41; background: #263B41;
> height: 12px; margin: 0; }
> 

I had exactly the same problem today.
I don't know if it is a perfect solution, but at the moment I'd modify
your CSS code this way:

hr.bighr { clear: left; border: none; color: #263B41; background:
#263B41; height: 12px; margin: 0 !important; margin: -7px 0; }  /* it
adds negative vertical margin to hr, but only IE will apply it, other
browsere respect the !important rule. */

I did it in the project I'm working on currently and it seems to be OK.

Pawel.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: