Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Country drop down background and forn are both white

Country drop down background and forn are both white

Views: 760

Results 1 to 6 of 6
4 Feb 2012, 7:40 PM
#1
vinayag79 avatar

vinayag79

New Zenner

Join Date:
Jan 2012
Posts:
14
Plugin Contributions:
0

Country drop down background and forn are both white

Hi,

In the create an account page, the country drop down background color and the font color are both white. I want to change the drop down background to black. Can some one please help me with this?
I searched the whole forum but could not find anything relevant to this. You can go to the link below to see what I'm taking about

http://planyourindiatrip.com/zencart/index.php?main_page=create_account

4 Feb 2012, 8:20 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Country drop down background and forn are both white

Add to your stylesheet:

#country option {background-color: #000;}

5 Feb 2012, 7:05 AM
#3
vinayag79 avatar

vinayag79

New Zenner

Join Date:
Jan 2012
Posts:
14
Plugin Contributions:
0

Re: Country drop down background and forn are both white

stevesh:

Add to your stylesheet:

#country option {background-color: #000;}

Worked like a charm! Thank you so much!:clap:

5 Feb 2012, 7:26 AM
#4
vinayag79 avatar

vinayag79

New Zenner

Join Date:
Jan 2012
Posts:
14
Plugin Contributions:
0

Re: Country drop down background and forn are both white

vinayag79:

Worked like a charm! Thank you so much!:clap:

I could change the background color and font. But in firefox when I select a country the country field looks blank. I've to click on the space outside and only then the selected country appears visible. Anything we can do about it? Surprisingly in IE it works just fine.

This is the code I used

#country option {
background-color: #FFFFFF;
color:#000000
}

Plese tell me if I'm doing anything wrong

5 Feb 2012, 2:55 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Country drop down background and forn are both white

Try this instead:

#country, #country option {
background-color: #000;
color:#fff;
}

Reverse the colors if you want black text on white.

12 Feb 2012, 3:28 PM
#6
vinayag79 avatar

vinayag79

New Zenner

Join Date:
Jan 2012
Posts:
14
Plugin Contributions:
0

Re: Country drop down background and forn are both white

Thanks Stevesh! Worked great!