Topic: Changing the border of select elements / drop down menus Pages that link to <a href="https://ozoneasylum.com/backlink?for=10728" title="Pages that link to Topic: Changing the border of select elements / drop down menus" rel="nofollow" >Topic: Changing the border of select elements / drop down menus\

 
Author Thread
kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

IP logged posted posted 05-04-2002 16:10 Edit Quote

I tried to change the color of a one-lined select box's border by using the following code:

<select size="1" name="dropdown" style="border: 1px solid #000000;">
<option value="">option 1</option>
<option value="">option 2</option>
<option value="">option 3</option>
</select>

but IE 6 / WinXP doesn't seem to want to change the default light blue color...

Any suggestions on how to achieve the desired effect?

kuckus

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

IP logged posted posted 05-04-2002 18:50 Edit Quote

You *can't* change visual appearance of dropdown combobox, only border that you can change is the border of pull down menu that appears when you click on dropdown arrow...


kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

IP logged posted posted 05-04-2002 19:58 Edit Quote

Oh. I almost feared that. Thanks for the info though!

I think I'll disable Windows XP's new look for all form elements with <META HTTP-EQUIV="MSThemeCompatible" CONTENT="no">.
Or is there a way of disabling it for a single element only?


hlaford
Bipolar (III) Inmate

From: USA! USA! USA!
Insane since: Oct 2001

IP logged posted posted 05-06-2002 16:50 Edit Quote

In the days of DOM and CSS you'd think that we could get a browser that enabled the styling of ALL elements.

A further question: do any of the browsers support multi-level select elements (i.e. using the OPTGROUP element)?

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

IP logged posted posted 05-06-2002 20:00 Edit Quote

hlaford: I read somewhere that only Netscape 6 / Mozilla supports OPTGROUP, and that it doesn't look very pretty. But I never tested it.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

IP logged posted posted 05-07-2002 07:40 Edit Quote

As far as form elements are concerned, you must not forget that they are not the same on all operating systems (Linux had skinable window managers for a long time, and now Windows also supports skinning) and manipulating with them (changing them dynamically) would be a real pain, so that's the main reason why you have limited set of customizable things...

OPTGROUP HTML element is supported by IE6 for Windows, IE5 for Macintosh and Mozilla (starting from version that was used in NN6 beta 1).




Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu