jimmyshoes
Programmer
I am trying to create a group of links each with a drop down box to create the following
lnk1 lnk2
Box1 Box2
The code I have devised works fine in Firefox but is a jumbled mess in ie (and maybe safari?)
I can achieve my desired effect without floats ( using just absolute and relative positioning) but I'm curious about what I am doing wrong
lnk1 lnk2
Box1 Box2
The code I have devised works fine in Firefox but is a jumbled mess in ie (and maybe safari?)
I can achieve my desired effect without floats ( using just absolute and relative positioning) but I'm curious about what I am doing wrong
Code:
<style>
.dropdown { float:left; }
.dropdownlink {position:relative;padding-left:5px;}
.listitem { position:absolute }
</style>
<div class="dropdown">
<div class="dropdownlink">lnk1
<div class="listitem">Box1</div>
</div>
</div>
<div class="dropdown">
<div class="dropdownlink">lnk2
<div class="listitem">Box2</div>
</div>
</div>