|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
css form element colours
Hi,
Can anyone point me in the direction of some good tutorials on colouring <form> elements such as textareas and menus etc. Im kinda after the effect that they have used on UDZone (URL) Ive been able to colour the textareas and choose border colour and solid etc. but im struggling to get one style to affect all the elements at the same time, especially the list menus and radios etc. Done this so far: <style type="text/css"> <!-- input, select, textarea, submit, list, menu, reset {background-color:#ffffff; border: #006699 1px solid; font-size:10pt; font-family:Ariel,verdana} --> </style> ........which is fine for textareas for bugger all use for anything else.. ![]() Any help would be appreciated. Matt |
|
#2
|
||||
|
||||
|
__________________
_______________ Matt |
|
#3
|
|||
|
|||
|
Using CSS2,you can make CSS for input elements like this:
input[type="checkbox"] { } input[type="button"] { } etc. You can also use pseudo classes,this for example will change it when the button has focus (is active): input[type=button]:active { } etc. Here comes the interesting part of using pseudo elements.You can set a green background for options,and a yellow background when it is checked: option { background-color:green; } option:checked { background-color:yellow; } |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css form element colours |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|