Note that there are some explanatory texts on larger screens.

plurals
  1. POSelect element not working inside nested divs
    primarykey
    data
    text
    <p>My HTML is</p> <pre><code>&lt;div id="div1"&gt; &lt;div id="div2"&gt;&lt;/div&gt; &lt;div id="div3"&gt; &lt;div id="div4"&gt; &lt;select&gt;&lt;several options&gt;&lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>The <code>div</code>s are nested and the <code>select</code> element won't work. I am using CSS in an external file, but wanted to ask if this HTML layout, by itself, will cause problems. My understanding is that for IE6/7 it can cause <code>z-index</code> issues, but I am using Chrome.</p> <p>If anyone wants to take the time to review the CSS I will happily post it, but wanted to first see if this is answerable on its own.</p> <p>Edit</p> <p>Here is the CSS. Note, div#2 is a semi-transparent background. The other divs are supposed to be positioned over top of it.</p> <pre><code>#div1{ width:100%; height:8em; position:relative; margin-top:3em; margin-bottom:3em; border-style:solid; border-width:thin; border-color:black; border-radius:4px; z-index:10; #div2{ width:80%; height:100%; position:absolute; margin-top:5%; left:0%; background-image:url(images/calendar_original.png); background-position:center; background-repeat:no-repeat; background-size:contain; opacity:0.2; z-index:1; } #div3{ width:100%; heigh:40%; overflow:hidden; margin-top:1em; padding-left:1.5%; z-index:13; } #div4{ height:4em; width:44%; float:left; font-family:verdana, Helvetica,Arial,sans-serif; font-size:medium; font-weight:bold; border-style:solid; border-width:thin; border-color:black; overflow:hidden; z-index:14;} select{ height:1em; color:black; font-family:Helvetica,Arial,sans-serif; font-size:large; font-weight:bold; width:150%; padding-left:0.5em; z-index:15;} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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