mehstg1319 wrote:
On May 18, 11:00 am, Ian Hobson <ian.hob...@ntlworld.comwrote:
>mehstg1319 wrote:
Thanks very much Ian, has fixed it in IE6 as well! :)
Seems to have another problem now though is that the bottom corners
seem to have spacing under them in IE now.
This is a bug in IE.
The solution I have used is to remove the content to the corner boxes -
I use , not ;nbsp;
Then get the CSS right for Firefox. Mine is
..boxed {
background-color: E9EAEC;
border: 3px solid #999999;
position: relative;
height: 11em;
padding: 7px 0 0 5px
}
..boxed .topleft {
background-image: url(corner-tl.gif);
top: -3px;
left: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}
..boxed .topright {
background-image: url(corner-tr.gif);
top: -3px;
right: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}
..boxed .bottomleft {
background-image: url(corner-bl.gif);
background-position: bottom;
bottom: -3px;
left: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}
..boxed .bottomright {
background-image: url(corner-br.gif);
background-position: bottom;
bottom: -3px;
right: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}
This gives me a 1px error at the bottom of the rounded corners in IE,
where you have 3 or 4px.
Then I correct this with a conditional comment (to appear just after the
<linkto the stylesheet.
<!--[if IE 6]>
<style type="text/css">
..boxed .bottomleft {
bottom: -4px;
}
..boxed .bottomright {
bottom: -4px;
}
</style>
<![endif]-->
That fixed it for me.
Hope you can use this information for your pages.
Regards
Ian