I’m trying to fix some IE8 compatibility issues on my site, and this one has caused me some trouble.
Here’s what I have:
[CODE]
<style>
.item {
float: left;
width: xyz;
margin-right: 15px;
}
.item:last-child {
/* To allow far right box to sit snug against right side of .row */
margin-right: 0px;
}
</style>
<div class=”row”>
<div class=”item”>item1</div>
<div class=”item”>item2</div>
<div class=”item”>item3</div>
</div>
Obviously IE 6/7 ignore the last-child, but at least I can use CSS expressions to compensate (yes I know they’re bad news). IE 8 has these expressions turned off in standards rendering mode.
Has anyone found a solution that…
-Doesn’t require any JS (again, I know expressions are JS)
-Doesn’t require the server side code to append an additional class to an item at the end of the row.
…?
Also, are there any known plans from MS to support this pseudo selector and some of the others from CSS3 in the future?
Thanks