Return to Snippet

Revision: 40164
at January 27, 2011 04:07 by paul66


Initial Code
/* align checkboxes, radios, text inputs with their label */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; *vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }

Initial URL

                                

Initial Description
Alignment of labels with their relevant inputs can be a horrible task to achieve in older browsers. This snippets solves that for us by making it consistent across browsers!

Initial Title
Aligning Labels

Initial Tags
css

Initial Language
CSS