This is a discussion on "Select drop down list will not accept css" within the Web Page Design section. This forum, and the thread "Select drop down list will not accept css are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Select drop down list will not accept css
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Select drop down list will not accept css
I hope someone can help, this is driving me mad!
I am unable to apply css to any select drop down list, it just simply ignores it. All other css coding works with my form fields and buttons etc. I have looked on some of the threads with forms and my css statements are the same, but come to no avail. All I am trying to do is add a border and maybe change the scrollbar. Is there a problem with IE7 and select elements? Thanks |
|
|
|
#2
|
||||
|
||||
|
Re: Select drop down list will not accept css
Not that I'm aware, but that doesn;t mean there isn't
To style my ul's i ul's (which is what I presume your drop down menu is made out of) I used this for my recent job: #navbar li ul { width:30em; line-height:1em; border:#000 1px dotted; position: absolute; left: -999em; } It annoys me too, it doesn't seem logical but give it some thought and it'll sink in
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Select drop down list will not accept css
Sorry Frinkky, I think you might of misunderstood me. I'm referring to the HTML Select element in Forms.
Thanks for the advice anyway. |
|
#4
|
||||
|
||||
|
Re: Select drop down list will not accept css
Ah, sorry, I've been slaving over these drop down menu;s for a couple weeks so I naturally assumed you were dealing with the same
How have you tried this? I've used classes to define css styling in all form elements in the past and can't recall a time when any major browser refused to obey my will
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Select drop down list will not accept css
select styling is limited without "faking" the select input element but just target it specifically i.e.
#foo select { background:#FF6600; font-weight:bold; color:#FFF; border:solid 1px #333333; } attached is an example if it helps. as for scroll bar styling, that is IE specific and should generally be avoided.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Mar 18th, 2008 at 13:51. Reason: Added file |
|
#6
|
||||
|
||||
|
Re: Select drop down list will not accept css
If you want full style control over your form elements, check out nice forms.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 Drop down list - auto select depending on choice from first list | ciaranleeper | JavaScript Forum | 0 | Mar 26th, 2008 10:38 |
| [SOLVED] select from array in drop down box | saltedm8 | PHP Forum | 6 | Dec 3rd, 2007 21:08 |
| Drag - drop Select Box | madhuri.t | JavaScript Forum | 1 | May 13th, 2006 15:24 |
| Menu List. Select Multiple without Ctrl+Click? | Andy K | JavaScript Forum | 7 | May 10th, 2005 09:01 |
| Editable select list? | pmichael | Web Page Design | 2 | Sep 26th, 2003 06:29 |