Click to See Complete Forum and Search --> : field


DanUK
04-18-2003, 09:19 PM
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!

Jona
04-18-2003, 11:45 PM
Yes, it's possible. For all form fields, try:

<style>
input {color:#000000;background-color:#FFFFFF;}
</style>

DanUK
04-19-2003, 06:30 AM
is it not possible to put it into my .css file? I pasted it before...If so what would I put? thanks.

Jona
04-19-2003, 12:40 PM
Just use this in the .css file:

input {color:#000000;background-color:#FFFFFF;}

havik
04-20-2003, 12:47 PM
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