CSS - Styling Checkboxes, Radio buttons & dropdowns?

Short answer: You can't do it nicely and consistent. The answer you might want to hear, depending on your situation: Use jQuery or something similar, which will give you plenty of plugins to choose from. These two are some of the better ones, as it will let you style just about all of the different controls.

I believe CSS 3 will allow you to style those elements, but for now it isn't directly possible. See this question: stackoverflow.com/questions/1120879/css-....

To get a consistent style across browsers and operating systems with a pure CSS approach. Some script manipulation of styles would also be required. This is a very good article that discusses the options and issues Styling form controls.

Listamatic has a great collection of CSS list styles.

This guy pretty much has all the styling you can put on form controls, but it's not consistent across browsers. You are going to have to go custom. Use a custom image for the checkbox, then change it's source to get the clicked version (and vice versa).

The select menu might be a little trickier. I hope there's a jQuery plugin out there that can help you!

You can't put an image as a checkbox, but you can always build your own checkbox :D. Put a hidden field and an image, add an "onclick" event over the image. When the onclick is fired check the status of the hidden field, change the image according to the status and save the status of the checkbox in your hidden field.

You should check for custom javascript libraries. One of my favorities is dojotoolkit.org.

Most likely you won't be able to, it is very difficult. Personally, I would just stay away from that.

You might find my post useful: kunal-b.in/2011/07/css-for-attractive-ch.... The basic idea is to hide the form ele­ment (checkbox/radio but­ton) and style the label instead using CSS. Thanks to the :checked selec­tor, it’s pos­si­ble to dis­tin­guish between the two label states by assign­ing styles to label and input:checked + label assum­ing that the label fol­lows the checkbox/radio but­ton in your html code.

Using a for attribute in the code makes the com­plete label click-able, mod­i­fy­ing the state of the asso­ci­ated element.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions