|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Designing a selectbox!
Hi. Im wondering. Is there any way to design the style of the selectboxes ?
- pheifel |
|
#2
|
|||
|
|||
|
CSS is the answer
You can use two different solutions, either use a CSS-class if you just wan't to have a different style on some, or use CSS to influence all selectboxes.
Here is an example: Code:
select
{
border-width: 1px;
padding: 1px;
font-weight: normal;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #F8F8F8;
color: #000;
}
You can write this with less code also, but since this is an example I haven't done that. |
|
#3
|
|||
|
|||
|
well... yes that i strue, that i can mod it in the css style class. But that does not fit all browsers. Some browsers ignore the css style fore certain objects. As does e.i. Safari. I am looking for a script ore a idear that alters the slectbox, not just style it.
|
|
#4
|
||||
|
||||
|
Some browsers & OS's don't style form widgets, so that the user is not alienated. If you wish to "roll your own" drop down, you will need to create one using DHTML - check out http://dynamicdrive.com/ and the like.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Designing a selectbox! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|