Forum Moderators: not2easy
What seems to be happening is that these elements are not inheriting the 'top' value of the parent div (making them appear the same distance further up). The parent div is relatively positioned, and when i make it absolute, the alignment of the floated elements is fine (though everything else breaks!)
I've only noticed this with IE5/6win, and it displays how i wanted it to in Mozilla
nb I only need it to display correctly in IE5/6win, though if Mozilla works that'd be a bonus (it's not a public site)
The workarounds i've tried so far:
1) Adding a top margin the same as the top value of the parent div to the floated elements - Failed due to causing the floated elements to float past each other.
2) Workaround 1) plus 'clear: both' - Failed due to causing the left margin of the parent div to disappear
The CSS:
#ParentDiv {
margin-left: 220px;
margin-right: 220px;
position: relative;
border: 1px solid #D3D3D3;
top: 108px;
voice-family: "\"}\"";
voice-family:inherit;
top: 110px;
}
.FloatedElements {
float : right;
font-weight : normal;
}
Any suggestions?
Richard
And by the way, Welcome to WebmasterWorld [webmasterworld.com]!