Click to See Complete Forum and Search --> : CSS and checkboxes


thegreatorangepeel
12-30-2004, 12:57 AM
I'm having trouble getting CSS to change the appearance of my checkboxes.

body
{
background: url('../png/slash.PNG');
}
input
{
text-decoration: none;
background-color: transparent;
color: #00CC00;
border-width: thin;
}
textarea
{
text-decoration: none;
background-color: transparent;
color: #00CC00;
border-width: thin;
}
a
{
text-decoration: underline overline
}

(ignore some of the unnecessary garbage. I'm still learning CSS)

it seems to me that "input" should change all input types, but my checkboxes sit there white. I have tried many differnt things (to the point that I lost track). Anyone have a difinitive anwser for me on how I should implement this?

Addendum:
I've been testing with Mozilla 1.7.1, Firefox 1 and MSIE

bwkaz
12-30-2004, 10:48 AM
Maybe none of those browsers use a checkbox widget that can have its background set to an image?

Does it work if you set the background-color of the body to something, and comment out the url(...) rule?

thegreatorangepeel
12-30-2004, 12:29 PM
No dice. That was a good thought though becuase I set the background color in one of my PHP functions and (obviously) not in my CSS file ... I added CSS when I remembered some nice results from a team oriented project I worked on back in college.

At anyrate, it dosn't look bad the way it is and I'm already further behind on this project than I care to be. (read as: still unemployed, someone please hire me)