CSS checkbox input styling

Issue

Any style for input affects every input element. Is there a way to specify styling to apply for only checkboxes without applying a class to each check box element?

Solution

With CSS 2 you can do this:

input[type='checkbox'] { ... }

This should be pretty widely supported by now. See support for browsers

Answered By – Andrew Hare

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published