Note that there are some explanatory texts on larger screens.

plurals
  1. POdrop down menu padding in IE
    text
    copied!<p>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:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt; &lt;title&gt;blah blah&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;select&gt; &lt;option style="padding-left: 0px;"&gt;Blah&lt;/option&gt; &lt;option style="padding-left: 5px;"&gt;Blah&lt;/option&gt; &lt;option style="padding-left: 10px;"&gt;Blah&lt;/option&gt; &lt;option style="padding-left: 0px;"&gt;Blah&lt;/option&gt; &lt;option style="padding-left: 5px;"&gt;Blah&lt;/option&gt; &lt;/select&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <hr> <p>Thanks Slaks, this sounds promissing but optgroup is lacking the value attribute. Infact I have the region's drop down which goes like this:</p> <h2>Albania</h2> <pre><code>Tirana </code></pre> <h2>United Kingdom</h2> <pre><code>London </code></pre> <h2>Pakistan</h2> <h2>India</h2> <h2>United States</h2> <pre><code>New York </code></pre> <p>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?</p> <p>P.S I am sorry, don't actually know the formating works in this rich editor but I think you will get the meaning, Albania is a country and then Tirana is the city in Albania so it should be indented in the dropdown for the user to figure out that Tirana is under Albania.</p> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload