# Edward's last-child CSS psuedo-class

**URL:** <https://forum.kirupa.com/t/edwards-last-child-css-psuedo-class/293507>\
**Category:** web dev\
**Created:** [July 30, 2009, 1:10am UTC](https://forum.kirupa.com/t/edwards-last-child-css-psuedo-class/293507 "2009-07-30T01:10:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [July 30, 2009, 1:10am UTC](https://forum.kirupa.com/t/edwards-last-child-css-psuedo-class/293507/1 "2009-07-30T01:10:47Z")

</div>

Does anyone use Edward’s **IE8.js** ([http://code.google.com/p/ie7-js/](http://code.google.com/p/ie7-js/)), which allows IE to use advanced CSS psuedo classes? On his homepage ([http://dean.edwards.name/IE7/](http://dean.edwards.name/IE7/)), he promised that the **last-child** selector would work. So far, I’ve only been able to get **first-child** to work.

Top: IE8 and IE7  
Bottom: FF3

![](http://img252.imageshack.us/img252/7971/45490876.png)

```php

<div id="nav">
   <a href="#">register</a>
   <a href="#">login</a>
   <a href="#">help</a>
</div>

#nav a {
   border-right: 1px solid #000;
}

#nav a:last-child {
   border-right: none;
}

```

What’s strange is that there was an issue filed ([http://code.google.com/p/ie7-js/issues/detail?id=171&q=last-child](http://code.google.com/p/ie7-js/issues/detail?id=171&q=last-child)) complaining about how last-child doesn’t work. And then someone responded and said to include IE8.js, not IE7.js. That’s what I did, but no dice…
