| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Firefox and Horizontal Ruled Lines i.e. HR tag | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
OK, for those smarter than myself at all things CSS, what is rthe best way to get a <HR> tag to display in colour in both IE (easy) and Firefox (mixed results!). I've been reading the information on:
http://www.computergripes.com/firefoxsites.html about Horizontal Ruled Lines (3/4/ way down the page) and there doesn't seem to be any hard and fast rules other than trying to trick firefox into displaying a coloured line. For example: Code:
in the stylesheet gives these outputs depending on use of the hr tag: Code:
the second one is what the author defaults to, actually giving the hr tag a color attribute which then forces firefox to then override it with the stylesheet attribute! Code:
i.e. specified twice in the stylesheet, gets it to work in both IE and firefox. What should I be using? Thanks Dan
__________________
4.4.2 and 4.6.1 |
|||||||
|
#2
|
|||||||
|
|||||||
|
Use whatever works
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#3
|
|||||||
|
|||||||
|
Lol, Thanks Balinor. Yes I know about the colour names etc, was only quoting verbatim from the website. What do you use then?
Thanks Dan
__________________
4.4.2 and 4.6.1 |
|||||||
|
#4
|
|||||||
|
|||||||
|
I typically don't use <hr> tags, but when I do I just leave them as the default grey. If I want a colored line I will use a 1px high table cell with a background color instead.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#5
|
|||||||
|
|||||||
|
Thanks, I'll give that a try!
Dan
__________________
4.4.2 and 4.6.1 |
|||||||
|
#6
|
|||||||
|
|||||||
|
Actually, just found this on the web and it's giving consistent results now from the stylesheet.
Code:
This is handy for anyone wanting to change the colour of default x-cart <hr> tags and wondering why simple edits to skin1.css don't work in firefox. Dan
__________________
4.4.2 and 4.6.1 |
|||||||
|
#7
|
|||||||
|
|||||||
|
Nice
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||