field

liunx

Guest
hi people. Is it in CSS where you can specify colours/text colour in fields? My site contains loads of forms with lots of fields, and thought it would be nice to 'match' the background and textcolour of the fields to the theme. My CSS file atm looks like:


a:link, a:active, a:visited {
color: #949191;
font-size : 10;
Font-Family: Tahoma;
text-decoration: none}

a:hover {
color: #BEBDBD;
font-size : 10;
Font-Family: Tahoma;
text-decoration: none}

BODY{
scrollbar-face-color:#98ADBF;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#6C88A1;
scrollbar-shadow-color:#000000;
scrollbar-highlight-color:#6C88A1;
scrollbar-3dlight-color:#000000;
scrollbar-darkshadow-Color:#000000}
}

FONT
{
color: #000000;
Font-Family: Tahoma}



Thanks!Yes, it's possible. For all form fields, try:

<style>
input {color:#000000;background-color:#FFFFFF;}
</style>is it not possible to put it into my .css file? I pasted it before...If so what would I put? thanks.Just use this in the .css file:

input {color:#000000;background-color:#FFFFFF;}Just to help you understand better. Declaring what Jona has posted in your .css file will essentially define new style "defaults" for the input tags. So, you don't even need to have:
<input ... class="inputclass"> or something like that.

Havik
 
Back
Top