Forum Moderators: open

Message Too Old, No Replies

How do you color the background of a drop-down list?

How do you add color to the background and text of a drop down list?

         

alex_cross

2:11 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



I'm trying to make the backround of a drop down list green with white text. If anyone knows how to do this please let me know. I know there are sites that have pre-made drop down list. If someone knows of any please shoot me an email.

mavherick

2:19 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



you could use styles in your stylesheet:

select {
color: #fff;
background-color: #090;
}

or inline:

<select name="blah" style="color:#fff;background-color:#090;">

mavherick

alex_cross

2:20 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



I guess it would be better if I called them pull-down-lists.

ritch_b

2:24 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



A quick method is to add a style attribute to the drop down, such as :

<select name="menu" style="background-color:#34582E; font-size:9; color: #FFFFFF">

I suspect that Netscape 4.x and Opera might not like this though & I've no doubt there's a tidier way of doing this - via .CSS anyone?

alex_cross

4:38 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



Thanks for the help.

What pixel size should a website be to fit on a 15" monitor? I know it will vary depending on how the viewer has their pc configured.

BlobFisk

4:47 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




What pixel size should a website be to fit on a 15" monitor?

The monitor size is not the issue, it the screen resolution that the user has his/her machine set at is the determining factor.

Generally, I design for a resolution of 800x600, so I allow my self an absolute maximum width of 770px and an absolute maximum height of 420px

ritch_b

4:52 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



Dreamweaver suggests the following :

1024x768 resolution : code at 955x600
800x600 resolution : code at 760x420
640x480 resolution : code at 600x300

Not sure about resolutions above that - Anyone?

alex_cross

4:59 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



What do most people have their PC's resolution set at?

BlobFisk

5:01 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




What do most people have their PC's resolution set at?

The majority still use 800x600....

alex_cross

5:18 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



Allrighty. That means I can go 760 wide and still fit on a 15" monitor according to Dreamweaver?

Nick_W

5:27 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Pssst, here's a better solution.....

drop the fixed width nonsense and let the design flow to fit whatever width the browser happens to be.....

It's not print media and it 'aint 1997 anymore. Go with the flow baby!

Nick

alex_cross

5:34 pm on Jul 4, 2002 (gmt 0)

10+ Year Member



Nick,

This will still cause horizontal scrolling which is what I am trying to avoid for the most part.

Nick_W

5:38 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not at all, there will be no horizontal scrolling whatsoever if you design it right. None of my sites get it, at least not untill you start getting really teeny windows ;)

Nick