Does any one know why my Safari is not taking padding in select lists? It’s working fine in FF please tell me what to do. is there any issue with the doctype?
code:
<select style="padding-left:15px">
<option>male></option>
<option>female></option>
</select>
I’m using the following doctype;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Even though the W3 spec doesn’t disallow padding in select boxes, for whatever reason webkit browsers (Safari, Chrome) don’t support it. Instead, you can remove the
padding-leftand usetext-indentinstead, adding the same amount to your select boxwidth.From your example in your comment: