Hi,
I have created a quirky rounded div box for a project i am working on and it displays fine in everything but IE6 – suprise, suprise.
What is happening is the box is adding vertical space and making the background break.
Here is the code for the box
[CODE] .action { position: relative; width: 217px; }
.actionBody { padding: 14px; }
.type1 { background: #f3841f url(top.gif) no-repeat top; }
.type1Close { background: #f3841f url(bottom.gif) no-repeat bottom; position: absolute; bottom: 0; left: 0; width: 217px; height: 10px; }
And below is the html:
[code=html] <div class=”action type1″>
<div class=”actionBody”>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec non erat. Mauris vitae nibh. <a href=”#” title=”#”>Body copy link</a></p>
</div>
<div class=”type1Close”></div>
</div>
Here is a link to how they look on different browsers:
[URL=”http://img230.imageshack.us/img230/7340/screenboxun1.gif”]http://img230.imageshack.us/img230/7340/screenboxun1.gif
Basically I have a long top image which is in a div positioned relative with the background aligned top and then a closing div with the bottom 10px closing image in positioned absolute.
Can anyone help me on why this is happening?
Many thanks