View Full Version : <hr> giving different results in IE and Firefox
zetetic
09-22-2004, 04:41 PM
I have this in my postbit:
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
tborder_bgcolor is #FFFFFF, but in IE the horizontal rule shows up as white and in Firefox it appears black. When I change it to color:#000000 it shows up as black in both. :confused:
You need the semicolon after your variable.
<hr noshade size="1" style="color: $stylevar[tborder_bgcolor];" />
I don't know if that will work or not, but you need to finish style tags with a semicolon (treat it as css).
However, it would be best just to use the hex color you want in there, or create a new css definition for it to use.
zetetic
09-22-2004, 07:56 PM
Ah, thanks. I didn't know that about the semicolon in general. Unfortunately that didn't fix the problem, though. Even when I put #000000 in directly it still shows up as white in IE and black in Firefox.
Edit to add:
The problem is Firefox doesn't handle css in <hr> very well, as described here (http://www.computergripes.com/firefoxsites.html). So I have to just use color="white" instead of the style tag.
Thanks for your help, though. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.