Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get .focus action on a checkbox button??? 1

Status
Not open for further replies.

BobMCT

IS-IT--Management
Sep 11, 2000
756
US
Gents;

In my css I have a section that reads:

/* Set Input Box Background Color */
input:focus {
background-color: #fafad2;
}

and this piece of css sets the background of each field as it is being entered (i.e.: focused). However, for checkbox fields this does not happen.

Is there a way to alter the appearance of a checkbox when the focus is placed on it? I cannot seem to find it even with my friend (google).

Anyone?
 
Thanks Vragabond;

Saved me a bunch of time and kept me from thinking I was going crazy. Looks like what I have is what I've got.

Gratis;
 
What you could do is style the label tag you use with the checkboxes. You are able to highlight that tag any which way you want, and with proper coding, clicking the label will perform exactly the same function as clicking the checkbox itself.

[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top