Select drop down list will not accept css

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 18th, 2008, 10:17
Junior Member
Join Date: Mar 2007
Location: Newark
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 18th, 2008, 10:53
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 18th, 2008, 11:05
Junior Member
Join Date: Mar 2007
Location: Newark
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 18th, 2008, 12:42
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 18th, 2008, 13:46
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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.
Attached Files
File Type: zip select.zip (674 Bytes, 4 views)
__________________

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Mar 18th, 2008, 14:27
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,341
Blog Entries: 2
Thanks: 11
Thanked 49 Times in 46 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 21:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42