1
bwirum
tag background-color working in IE, not in Firefox
  • 2005/3/8 11:02

  • bwirum

  • Just popping in

  • Posts: 49

  • Since: 2004/1/16


Hi,

I have used StudioC's example of a CSS theme and edited to my liking.

Thanks to StudioC for the excellent runthrough and theme! Two thumbs up!

But I have a problem; I try to get the 'sublinks' show with a grey bg color. I'm doing it like this:

#menulinks {
    
font12px/15px VerdanaArialHelveticasans-serif;
    
margin0px 5px 20px 0px;
    
padding0px;
    
widthauto;
    
background-color transparent;
    
floatleft;
}

#menulinks ul, #menulinks li {
    
displayinline;
    list-
stylenone;
    
margin0px;
    
padding0px;
}

#menulinks li a, #menulinks li a:hover, #menulinks li a:active {
    
displayblock;
    
text-decorationnone;
    
color#0867b3;
    
background-colortransparent;
    
margin0px 0px 1px 0px;
    
padding2px 5px 2px 2px;
    
border-right6px solid #0867b3;
    
text-alignright;
    
width 120px;
    
font-weightnormal;
}

#menulinks li a:hover, #menulinks li a:active {
    
border-right6px solid #808080;
    
color#808080;
    
text-decorationunderline;
}

#menusublinks {
    
font-size0.8em;
    
background-color#EEEEEE;
}

And it shows up fine with the grey background in IE, but not in Firefox?

Any help appreciated.

You can see the site here. There's sublinks in the 'Nyheter' section (News), so you see it right away if you try to use ie/firefox.

2
incama
Re: tag background-color working in IE, not in Firefox
  • 2005/3/8 12:44

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


Even in IE 6sp1 I can't see the grey background,. try to add:
#menusublinks a{
    
font-size0.8em;
    
background-color#EEEEEE;
}


Your sub is a link so it has to be treated that way,.

3
bwirum
Re: tag background-color working in IE, not in Firefox
  • 2005/3/9 8:06

  • bwirum

  • Just popping in

  • Posts: 49

  • Since: 2004/1/16


Well, I check it in IE6 sp2, don't know if that has anything to do with it.

Anyhow, the a{ didn't do the trick either. No background for me. Actually, when I put the a{ reference in there it disappeared in IE too.

So I'm stumped. Basically.

Login

Who's Online

203 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits