Forum Moderators: not2easy

Message Too Old, No Replies

Problem with <hr using inline style in IE7 & Mozilla

Inline style problems

         

mitchellyachting

8:39 pm on Sep 23, 2008 (gmt 0)

10+ Year Member



Hi,

In my code I have the following:-

<HR style="width: 63%; height: 1px; color: #000000; background-color:#000000 ">

What appears in Firefox is a grey line and nothing appears in IE7. What am I doing wrong?

Mitchellyachting

swa66

9:20 pm on Sep 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually most browsers render a <hr /> as an inset border, so it might go completely away if you have globally reset borders.

3d effect borders never obey colors all that well, but the good news is that you can change the border style itself.

As usual, IE does it's own funky thing (it kinda obeys the borders, but doesn't actually go there).