Previous Message
Next Message

<hr> and background image without border in IE

Sent by David Laakso on 22 September 2005 17:05


Martin Petrov wrote:

>I guess my question's been asked many times. I'm wondering if anybody
>knows  how to remove the border that Internet Explorer shows when
>using a background image with the hr element.
>
>
>  
>
Martin,
FWIW, I do not remember where I got this stuff.
And have no idea if all this code to create a lousy cross-browser hr 
will even work in your particular situation?
hr { border: none; /* For Internet Explorer */ color: #CFDEE1; height:
1px; text-align: right; width: 100%; }
html { background: #EBECF1; margin: 0; padding: 0; }
html>body hr { background-color: #CFDEE1; border: none; /* For Gecko-based
browsers */ height: 1px; margin-right: 0; width: 100%; }
html>body hr { background-color: #CFDEE1; border: 0px solid #CFDEE1; /*
For Opera and Gecko-based browsers */ height: 1px; margin-right: 0; width:
100%; }
Best,
~dL



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

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