Hi,
I am trying to figure out how to set correct margin between a left floated IMG and an adjacent <ul>. But I am getting different results in IE and FF.
Does anyone know the correct way to do this?
Right now this works in FF but not IE...
Thanks
RR
I am trying to figure out how to set correct margin between a left floated IMG and an adjacent <ul>. But I am getting different results in IE and FF.
Does anyone know the correct way to do this?
Code:
<style type="text/css">
#theDiv{width:800px; height:1000px; background-color:#00FFFF;}
#theDiv li{margin-left:35px;}
</style>
Code:
<div id="theDiv">
<img src="images/ACF2F.jpg" style="float:left;">
<ul>
<li>hsad sad as hsd khasd sh ksah kash</li>
<li>hsad sad as hsd khasd sh ksah kash</li>
<li>hsad sad as hsd khasd sh ksah kash</li>
<li>hsad sad as hsd khasd sh ksah kash</li>
</ul>
</div>
Right now this works in FF but not IE...
Thanks