CSS Checkbox Styling Nightmare (Pic)

By | February 8, 2011


It looks like a simple checkbox is one of the hardest things to style (unless you use JS).

Internet Explorer 8 (I’ll just do whatever I want)
CSS Checkbox Styling Nightmare (Pic)

Firefox 4 Beta 10 (guess that the background color is a taboo for Mozilla)
CSS Checkbox Styling Nightmare (Pic)

Google Chrome 9 (close but checkbox is gone)
CSS Checkbox Styling Nightmare (Pic)

Opera 11 (just like it should be (too bad that Opera is the only one to do so))
CSS Checkbox Styling Nightmare (Pic)

Not to mention all this code mess :-)

input name="rememberme" type="checkbox" style="
width: 20px;
height:20px;
border: none;
color:#fff;
background-color:#c1c1c1;
-moz-appearance:none;
webkit-appearance:none;
-o-appearance:none;
border: 0px inset ThreeDFace ! important;
margin: 0 0 0 5px;
padding: 5px 4px 3px 5px;
"value="1" checked

I have a dream (excluding master degree in CSS coding)… Wish that browser makers would stop adding new features and just fix this mess in the first place.

Oh well, time for some JS.


About (Author Profile)


Vygantas is a former web designer whose projects are used by companies such as AMD, NVIDIA and departed Westood Studios. Being passionate about software, Vygantas began his journalism career back in 2007 when he founded FavBrowser.com. Having said that, he is also an adrenaline junkie who enjoys good books, fitness activities and Forex trading.

Comments (4)

Trackback URL | Comments RSS Feed

  1. RamaSubbu SK says:

    HI,
    Can you share the full code here ? I see that code have webkit/mozilla specific style code ?

    -moz-appearance:none;
    webkit-appearance:none;

    Thanks
    -RamaSubbu SK

  2. toenailsin says:

    does it show any differently in IE9?

  3. Sergey says:

    You should use -webkit-appearance with minus.