Hi,
What is the best way to colour a <hr> in IE it works by using
.hr {
color: 000000;
}
but the colour tag doesn't work in the other browsers
but when u do <hr color:000000;> it DOES work????
Any ideas
Thanks
AdamYou should be able to find the information you need in this recent topic on this forum (<!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showthread.php?s=&threadid=54458">http://www.webdeveloper.com/forum/showt ... adid=54458</a><!-- m -->).
Hope it helps.Hi, thank you for that.
It works great now, i did hve to do do 1 thing though and add a border = 0 this is because in opera the hr has a border that is gray (unless you change)
.straplinehr {
width: 300px;
text-align: center;
height: 2px;
color: #FFCC33;
background-color: #FFCC33;
border: 0;
}Yeah, that's true, and it is valid CSS as well. I really should have added that to the other post as I have encountered that and have used the border: 0; myself.
HRs can be so pesky across the various browsers (when putting them in scrollable Divs and such), at least that's the way it seems to me. I'm to the point that I use them sparingly and only in places where they're sure to behave themselves.
What is the best way to colour a <hr> in IE it works by using
.hr {
color: 000000;
}
but the colour tag doesn't work in the other browsers
but when u do <hr color:000000;> it DOES work????
Any ideas
Thanks
AdamYou should be able to find the information you need in this recent topic on this forum (<!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/showthread.php?s=&threadid=54458">http://www.webdeveloper.com/forum/showt ... adid=54458</a><!-- m -->).
Hope it helps.Hi, thank you for that.
It works great now, i did hve to do do 1 thing though and add a border = 0 this is because in opera the hr has a border that is gray (unless you change)
.straplinehr {
width: 300px;
text-align: center;
height: 2px;
color: #FFCC33;
background-color: #FFCC33;
border: 0;
}Yeah, that's true, and it is valid CSS as well. I really should have added that to the other post as I have encountered that and have used the border: 0; myself.
HRs can be so pesky across the various browsers (when putting them in scrollable Divs and such), at least that's the way it seems to me. I'm to the point that I use them sparingly and only in places where they're sure to behave themselves.