I m trying to leave a gap from left in select list, but its getting problem in firefox and safari please give me source code or any reference link from where i can work…
code which i use :
<select style="padding:10px">
<option>Male</option>
<option>female</option>
<option>other</option>
</select>
Thanks
Yes i want indent from left
Maybe you were after something like:
jsFiddle example here.
Is that what you wanted?
Edit:
After some testing in Safari(for PC) you can style your
selectwithtext-indent:20px;Safari. Maybe you’d be better off using something like the Brainfault select box replacement jQuery, which I just viewed the example in Safari (PC) and the jQuery works fine.Last Edit:
For your specific needs, get this: CSS Browser selector, and install it on your page (just download it to your scripts folder and copy and paste this into your head:
<script src="path-to-file/css_browser_selector.js" type="text/javascript"></script>)Then use this HTML:
Then use this CSS:
Isung this jQuery selection plugin, it will tell FF to use padding and Safari(and chrome) to use text indent.