Jump to content

drop down padding problem in IE


hammadtariq

Recommended Posts

Hello,

      I have checked this in IE8 and its compatible mode, in firefox this code is working fine but in IE its not indenting as expected. The code is below:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>blah blah</title>

</head>

<body>

<select>
    <option style="padding-left: 0px;">Blah</option>
        <option style="padding-left: 5px;">Blah</option>
            <option style="padding-left: 10px;">Blah</option>
    <option style="padding-left: 0px;">Blah</option>
        <option style="padding-left: 5px;">Blah</option>
</select>

</body>
</html>

 

Please help!

Link to comment
https://forums.phpfreaks.com/topic/187144-drop-down-padding-problem-in-ie/
Share on other sites

Hello,

      Thanks Vineet, this sounds promissing but optgroup is lacking the value attribute. Infact I have the region's drop down which goes like this:

 

Albania

    Tirana

United Kingdom

    London

Pakistan

India

United States

    New York

 

 

In this scenario user can also select United Kingdom for example and I dont want United Kingdom to be repeated twice. Is there any solution for it?

 

Thanks

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.