I think am going back to doing those clear divs in the traditional way and putting them in the markup...
you could just use overflow:hidden for that.
using this in the PARENT ELEMENT declaration simulates :fore and :after for IE<8. You can even ad it to a condition IE style sheet)
Code:
zoom:expression(
runtimeStyle.zoom=1,
insertAdjacentHTML('beforeEnd','<span class="after"></span>')
);
zoom:expression(
runtimeStyle.zoom=1,
insertAdjacentHTML('afterBegin','<span class="before"></span>')
);
Alos are you sure you matching your mark up to your HTML? The your CSS works fine for me ( haven't checked IE) , of course I wrote HTML to match.
for example:
Code:
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<style type="text/css">
section#upload a:last-child:after { clear:both; content:"test - clear div"; display:block; }
</style>
</head>
<body>
<section id='upload'>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat <a href="#">nulla pariatur</a>. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit<a href="#"> anim id est</a> laborum.
</section>
</body>
</html>
works just fine.
Then again it may not be what you were expecting (it seems odd to put a BLOCK inside and INLINE LINK... but here is no accounting for taste).. but that's exactly what that CSS should do given that mark up.
Bookmarks