HighDots Forums  

Drop down list not accepting class

alt.html.tags alt.html.tags


Discuss Drop down list not accepting class in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
McEve
 
Posts: n/a

Default Drop down list not accepting class - 01-06-2004 , 11:22 AM






Hi,

How can I set a style on a drop down list in a form? I wish to set the
border to a certain color.

What works on other form elements:

..formborder {
border-color : #1A2F80;
border-style : solid;
border-width : 1px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-weight: normal;
}

Does not seem to work on the drop down list...

Thanks for any help you might be able to provide.



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Drop down list not accepting class - 01-06-2004 , 12:51 PM






McEve wrote:
Quote:
How can I set a style on a drop down list in a form?
Same as anything else in theory (assuming you mean a select element). In
practise browser support is rather limited.

Quote:
font-family: Verdana, Arial, Helvetica, sans-serif;
http://css-discuss.incutio.com/?page=Verdana

Quote:
font-size: 9px;
http://css-discuss.incutio.com/?page=UsingPixels

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #3  
Old   
McEve
 
Posts: n/a

Default Re: Drop down list not accepting class - 01-06-2004 , 02:59 PM




"David Dorward" <dorward (AT) yahoo (DOT) com> wrote

Quote:
McEve wrote:
How can I set a style on a drop down list in a form?

Same as anything else in theory (assuming you mean a select element). In
practise browser support is rather limited.

font-family: Verdana, Arial, Helvetica, sans-serif;

http://css-discuss.incutio.com/?page=Verdana

font-size: 9px;

http://css-discuss.incutio.com/?page=UsingPixels

--
David Dorward <http://dorward.me.uk/
The drop down box accepts the font style, it's the border it won't accept.
The drop down is an <option> inside a <select> inside a <form> inside a
<table>. I've set the class on both option and select - but the drop down
box does not accept the border. All other form elements do....

So what's so special about the drop down..?




Reply With Quote
  #4  
Old   
David Dorward
 
Posts: n/a

Default Re: Drop down list not accepting class - 01-06-2004 , 03:25 PM



McEve wrote:
Quote:
How can I set a style on a drop down list in a form?

Same as anything else in theory (assuming you mean a select element). In
practise browser support is rather limited.

The drop down is an <option> inside a <select> inside a <form> inside a
table>. I've set the class on both option and select - but the drop down
box does not accept the border. All other form elements do....

So what's so special about the drop down..?
Its often rendered as an OS control rather then a browser control and hence
supports limited styling. This varies from browser to browser.

Quote:
font-family: Verdana, Arial, Helvetica, sans-serif;
http://css-discuss.incutio.com/?page=Verdana

font-size: 9px;
http://css-discuss.incutio.com/?page=UsingPixels

The drop down box accepts the font style, it's the border it won't accept.
Which doesn't change the problems with using pixels for font sizes and
Verdana for font-family.

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #5  
Old   
McEve
 
Posts: n/a

Default Re: Drop down list not accepting class - 01-06-2004 , 04:49 PM




"David Dorward" <dorward (AT) yahoo (DOT) com> wrote

So what's so special about the drop down..?
Quote:
Its often rendered as an OS control rather then a browser control and
hence
supports limited styling. This varies from browser to browser.
So it's not possible to set border on a drop down box?

Quote:
font-family: Verdana, Arial, Helvetica, sans-serif;
http://css-discuss.incutio.com/?page=Verdana

font-size: 9px;
http://css-discuss.incutio.com/?page=UsingPixels

The drop down box accepts the font style, it's the border it won't
accept.

Which doesn't change the problems with using pixels for font sizes and
Verdana for font-family.
ok, I see your point.

Quote:
--
David Dorward <http://dorward.me.uk/



Reply With Quote
  #6  
Old   
David Dorward
 
Posts: n/a

Default Re: Drop down list not accepting class - 01-07-2004 , 01:44 PM



McEve wrote:

Quote:
So what's so special about the drop down..?

Its often rendered as an OS control rather then a browser control and
hence supports limited styling. This varies from browser to browser.

So it's not possible to set border on a drop down box?
As I said before - its possible - but your browser doesn't appear to support
it.

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #7  
Old   
McEve
 
Posts: n/a

Default Re: Drop down list not accepting class - 01-10-2004 , 06:09 AM




"David Dorward" <dorward (AT) yahoo (DOT) com> wrote

Quote:
McEve wrote:

So what's so special about the drop down..?

Its often rendered as an OS control rather then a browser control and
hence supports limited styling. This varies from browser to browser.

So it's not possible to set border on a drop down box?

As I said before - its possible - but your browser doesn't appear to
support
it.

--
David Dorward <http://dorward.me.uk/
I checked Mozilla, IE, Opera and Netscape. All latest version. None of them
display the border, so which browser does? And how would you define a style
for the drop down box?

Nina




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.