css - li absolute postion in IE -
i having issue ie positioning li items position:absolute;
. structure works fine in other browsers this:
html
<div class="container"> <div class="container-nav"> <ul class="nav"> <a href="#"> <li id="an-item">hi</li> </a> <ul> </div> <div>
all parent containers position:relative
, work fine in other browsers. in ie format items start positioning relative outside container. way got right adding position:absolute;
<a>
tag. when though throws off other browsers. way fix this? should use conditional css or not standard anymore??
you can't put anchor tag
inside ul
ie doesn't allow other browser way friendly invalid html structure not case ie can following :
<div class="container"> <div class="container-nav"> <ul class="nav"> <li id="an-item"><a href="#">hi</a></li> <ul> </div> <div>
put anchor tag
inside li
Comments
Post a Comment