Please see my fiddle here.
I'm trying to understand how the absolutely positioned "red hexagon" icon overlaps the input/textarea element without a z-index ?
<style>
.c-icon-error-a {
height: 17px;
width: 18px;
}
.c-icon-v2 {
background-image: url("http://i.stack.imgur.com/RSjot.jpg");
background-repeat: no-repeat;
display: inline-block;
height: 14px;
vertical-align: middle;
width: 14px;
}
.c-icon-error-a {
margin: 4px;
position: absolute;
}
ul li {
margin-bottom:15px;
}
</stlye>
<body>
<ul>
<li>
<span class="c-icon-v2 c-icon-error-a"></span>
<input type="text" value="" id="Validation_Field1" name="Validation.Field1" />
</li>
<li>
<span class="c-icon-v2 c-icon-error-a"></span>
<textarea rows="5" cols="25" name="txtarea" id="txtarea"></textarea>
</li>
</ul>
</body>
Do the absolutely positioned elements have a separate z-index count which are higher than the elements occurring in normal flow ?