CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 26th, 2002, 09:35 AM
McKenna's Avatar
McKenna McKenna is offline
Purple is a Fruit
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Ireland
Posts: 404 McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 63627 Folding Title: Intermediate FolderFolding Points: 63627 Folding Title: Intermediate FolderFolding Points: 63627 Folding Title: Intermediate FolderFolding Points: 63627 Folding Title: Intermediate Folder
Time spent in forums: 3 Days 2 h 8 m 13 sec
Reputation Power: 164
Styling the select element via CSS

Hey I was styling input elements on a web page of mine as follows:

input
{
background-color: #FFFFFF;
width: 200px;
border: 0px black inset;
font-size: .8em;
margin-bottom: .0em;
padding-left: .0em;
padding-right: 0;
padding-top: .0em;
padding-bottom: .0em;
font-family: Verdana;
}

and I wanted to style a drop down menu (select) in a similar fashion, but I cant seem to get rid of the bevelled effect that is default for the drop down menu. I want it to seem like there is no border there at all.

Also, as an aside, is it possible to get the arrow for the drop down list to disappear when the focus is not on the drop down menu? Would probably be achieved by JavaScript but I am just wondering as it would make the page look a lot nicer if the drop arrow only showed when the menu item is being selected. (Don't worry, it's not going onto a web site, it's just for me

Thanks for your time.

Reply With Quote
  #2  
Old November 26th, 2002, 10:58 AM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
hahahahahahahahahahaha

Reply With Quote
  #3  
Old November 26th, 2002, 11:57 AM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 8
Heh. To clarify adios' response: no.

You could do something similar with divs and a helluva lot of scripting and an equal amount of patience though.

Reply With Quote
  #4  
Old November 26th, 2002, 12:04 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10

Reply With Quote
  #5  
Old November 26th, 2002, 12:58 PM
McKenna's Avatar
McKenna McKenna is offline
Purple is a Fruit
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Ireland
Posts: 404 McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 63627 Folding Title: Intermediate FolderFolding Points: 63627 Folding Title: Intermediate FolderFolding Points: 63627 Folding Title: Intermediate FolderFolding Points: 63627 Folding Title: Intermediate Folder
Time spent in forums: 3 Days 2 h 8 m 13 sec
Reputation Power: 164
Thanks,

ComboBox is exactly what I need. Just one question, to make this work in a table you have to reference the parent of the object and I'm not sure how to do that. It is automatically set to document.body, but I have it within <table><tr> and <td> tags. Anyone able to help me with this?

Thanks a lot.

Last edited by Ebow : November 27th, 2002 at 04:39 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Styling the select element via CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway