Possible Duplicate:
Checkbox size
I'm trying to make some checkboxes display larger in most modern browsers (FF10, Chrome, IE9+)
I tried setting the width/height but that only works in FF, not in Chrome or IE.
Any suggestions?
Possible Duplicate:
Checkbox size
I'm trying to make some checkboxes display larger in most modern browsers (FF10, Chrome, IE9+)
I tried setting the width/height but that only works in FF, not in Chrome or IE.
Any suggestions?
You can use the transform
style with a scale
function. See http://jsfiddle.net/kwEK6/
This works in many browsers, but, of course, not all...
Or you can try:
height: 30px;
line-height: 30px; //line-height is same with height make your text is middle.
font-size: 13px; // It's up to you
padding: 10px; // It's up to you
You can do something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<style>
.ccs3fl input[type='checkbox'],.ccs3fl input[type='radio']
{
filter: alpha(opacity=0);
-moz-opacity: 0;
-webkit-opacity: 0;
opacity: 0;
position:absolute;
cursor: hand;
cursor: pointer;
}
.ccs3fl input[type='checkbox']+::after,.ccs3fl input[type='radio']+::after
{
font-wight:bold;
border: solid 1px #D9D9D9;
border-radius: 3px;
vertical-align: middle;
content:'\2714';
color:#FFFFFF;
background:#FFFFFF;
}
.ccs3fl input[type='checkbox']:checked+::after ,.ccs3fl input[type='radio']:checked+::after {color:#6599FF;}
.ccs3fl input[type='radio']+::after {content:'\25CF';padding:0 3px;}
</style></head><body>
<form class='ccs3fl'>
<input type=checkbox><b></b> My Custom Checkbox
</form></body></html>
notice:
<b></b>
at the end of checkbox - where should be an empty element placed after each radio/checkbox in order for this to work propertly