Forum Moderators: not2easy

Message Too Old, No Replies

Select list styles

What styles are supported by the <select> object

         

onemorecup

2:10 pm on May 28, 2003 (gmt 0)

10+ Year Member



I'm trying to change the line height of the items in a drop-down list. I can change the font-size, background colour and text colour using CSS, but I can't find any way to add space between the items on the list... i thought it may be possible using line-height or padding, but neither seems to work (only needs to work in ie5+).

Does anyone know any way of doing this, or a good reference
site where i can find out which styles are supported by the select object?

BlobFisk

2:45 pm on May 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, onemorecup!

I tend to only style text and backgrounds on a select list due to browser support (IE doesn't support font restyling on selects though!), but I know you can style the border in Mozilla and Netscape.

A similar discussion took place here [webmasterworld.com] before with some links that may help/

onemorecup

4:13 pm on May 28, 2003 (gmt 0)

10+ Year Member



thanks BlobFisk,

i did read that thread you mentioned, but its not quite what i'm looking for.

I looked on the MSDN site [msdn.microsoft.com] - it lists line-height as one of the available styles for the select object, but it doesn't seem to work! The select/option objects don't seem to support anyway of adding space between the list items.