View Full Version : css & forms question

11-19-2002, 05:39 PM
How do I go about adjusting a drop down box with css? I don't want colours inside the box to change, only the size of the drop down box and it's outline. Thanks.

11-19-2002, 07:17 PM
from what i remember select boxes are quite akward to style more than colours and fonts... i dont think i had any sucsess with borders. and to change the length of the box that drops down you would have to change the size of the top select bit:

<select style="width: 275px">

hopefully someone will correct me if i'm wrong...

11-19-2002, 08:02 PM
Originally posted by craighj
it's outline.

the outline, i think you mean the border?
that cannot be controlled with css, except for in a few browsers.
but the most commonly used will not see it.

style="border:3px outset red"

and, that works fine redhead

11-20-2002, 03:29 PM
Yep, sorry I did mean border. Thanks for the replies :)

11-20-2002, 05:49 PM
Originally posted by cg9com
and, that works fine redhead

hmmmm.... proved wrong again ;) cg9: what browser are you using? i just tried it again and it still didnt show a coloured outline................ :confused:

11-20-2002, 11:06 PM
in IE the border style wont be recognized, but in moz1.1b it will recognize it, thats why i said it CAN work.

being proved wrong is a good thing :)
how else will you know? :)

oh and what browser am i using?
netscape 7
K-meleon 0.6.5
MSIE 6.00.2600.0000
Opera 6.05
Mozilla 1.1b