• Answers
  • Web

Css style of a select box

How can I change with CSS the style of a select box (drop down)?

I want to change the look of the arrow, the border, colors ets.


Share Send to a friend Watch Report
 
 

8 Posted Answers
Order by

 
1 helpful answer

changing the cursor is easy with its css properties :

http://www.w3schools.com/css/pr_class_cursor.asp

changing the look and feel of the select is done by styling both the SELECT and OPTION tags. the styling is very limited and may look different on various browser. thats why the best practice in web design is not to use the select. instead we use lists and award them with behavior using javascript.

you can check heep.co.il search drop down to fully understand the technique. 

also, here a few methods that should work as well:

http://www.tyssendesign.com.au/articles/css/dropdown-low-down/ 

Posted 2007-11-17T23:38:33Z
Helpful?(2)
Rated as Best Answer
 
5 helpful answers

Check this site we made, and the way the [ul] is styled.

http://www.actionchaos.com/chaos/do/type/NEWS/getArticleList.html

Posted 2007-11-16T23:08:16Z
blonkm was invited by Yedda to answer this question.

 
4 helpful answers

I found this site to answer most of the form style/design questions I had .. http://jeffhowden.com/code/css/forms/

Posted 2007-11-15T15:49:32Z
masprema was invited by Yedda to answer this question.

 
16 helpful answers

A number of different style properties on <select> elements can be affected with CSS, although a lot of what you can do to change the look of a select box is achieved by changing the style of the inner <option> elements - e.g. the padding, border, background-color, font-size, etc.

By including class names on different option elements, you can achieve interesting affects. E.g. every alternative option element may have the class 'alt' - then you might have something in the CSS like:

select option {
     background-color: #ffe;
}

select option.alt {
    background-color: #eff;
}

The arrow of the select box is determined by the browser and operating system and is not affected by CSS. The only way you could change it would be to use some JavaScript to script your very own 'select box' from, say, <li> elements.

Posted 2007-11-16T10:09:05Z
Premasagar was invited by Yedda to answer this question.

 
1 helpful answer

it looks nice. thank you

Posted 2007-11-18T15:37:17Z
 

I am not sure how to do that, but I found this site www.yellow7.com that might be able to answer your question.

Posted 2007-12-04T21:01:00Z
 

You cannot do that, at least not if you wish this style to be rendered in all browsers. I was trying to solve this problem on

Svi Poslovi by many hacks. No way...
Posted 2008-06-05T13:37:05Z
 

design the world

.dd_1 { font-family: Verdana; font-size: 11px; font-style:normal;
 height:17px; color : #000000; border:1px solid #000000;
 }

Posted 2009-03-18T15:34:07Z

Sign in to participate

Got an answer for ilana? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

Web Design

Why Not To Use Web Design Templates?
Submitted by abby   3 years ago.
  • viewed 847 times
Last answer posted 14 days ago by SeattleWebsiteDesign


Q:

Who likes to design a website for a side project ...

who likes to design a website for a side project of a well known gallery for contemporary art in berlin? small budget
Submitted by Giti Nourbakhsch   2 months ago.
  • viewed 1588 times
Last answer posted 14 days ago by SeattleWebsiteDesign


Q:

CSS looks great in IE bad in Mozilla

Hello, I'm building a webpage http://preview.tinyurl.com/yvgbqg I need to list the (many) speakers at a conference and I will ...
Submitted by webmanoffesto   2 years ago.
  • viewed 1444 times
Last answer posted 2 years ago by dbomez



» More...

Explore Related Posts in Forums

WEB Page Design+Coding! $35 only - CSS/HTML - See Details

What you will get : Unique Design > Converted to valid Html > CSS(Optional) Price : $35 for ... I am offering web page design services at lower prices to dp members for a limited time period pm budcoding only > $15I need a clients site redone. Needs to be html & css. Pay after initial

Interested in becoming a web designer for local businesses; Is learning CSS...

design instead of the basic HTML I've been doing for my own affiliate websites. Is CSS/XHTML the best... Frankly I'm more of an expert on the web marketing end of things, but I need to learn good web CSS is essential. It is superior in every way to styling via deprecated HTML tags. As you learn

Web-design / CSS / HTML specific forum

Does anyone know a good forum geared towards CSS, HTML and general web-stuff? Does anyone know a good forum geared towards CSS, HTML and general web-stuff? The webdev forums are pretty good.Thanks, I'll check it out.
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License