Click to See Complete Forum and Search --> : Is it possible to change Background color of Html CheckBox ???


nahidshahin
03-01-2007, 03:49 AM
Hello guys,
Is it possible to change Background color of Html CheckBox ???
I have tried a lot but can't change it :(

Thanks
Regards
-Nahid

venkat.kudipudi
03-01-2007, 04:02 AM
Try the below ,

<b style="font-family:courier;background-color:#800080;font size:14"><input type="checkbox" name="purple" CHECKED><b>PURPLE</b></b>

Regards,
Venkat

nahidshahin
03-01-2007, 05:35 AM
Thanks Venkat for your quick reply.

"<b style="font-family:courier;background-color:#800080;font size:14"><input type="checkbox" name="purple" CHECKED><b>PURPLE</b></b>"
Makes a checkbox with "purple" label. And make labels background is changed to purple. and checkbox's (the component's background only) background is still WHITE.

I need to change checkbox's background. Is it possible ?
Can I make my-self clear ????

Thanks
Regards
-Nahid

WebJoel
03-01-2007, 08:42 AM
Black-on-white (checkmark over background) might be a browser default, hard-code into the browser's shell or chrome, -like the width & colors of scrollbars (although there is that often-reviled little code that IE-only has that does allow you to change scrollbar colors). The default vertical scrollbars on <object> tag is another perfect example. Even when not required, it is still there, just shadowed-out, but still visible.

If these cases, it is an Accessibility issue, more-or-less built-into browsers to prevent coders from creating (for inastance) yellow checks on white or orange background (making it essentially, nearly invisible).
This is just a guess... but I believe it is more than just likely. :rolleyes: