tags:

views:

27

answers:

1

Hello,

I have been using the following CSS to apply an effect at the bottom of elements in a menu:

.leftMenuProductWrapper div:last-child{margin-bottom:20px;}

This works fine initially, however after adding more elements in the menu, I realized it was a problem. I really only want to select the last div with .leftMenuProductButton within .leftMenuProductWrapper

Anyway to do this without using Jquery, just pure CSS?

+2  A: 

Sounds like http://reference.sitepoint.com/css/pseudoclass-nthlastchild

Might want to check your browser compatibility though.

Kevin
Thats the closest thing to a solution I think I will get. Alternatively, I realized I can just make the object below it have a top-margin. Thank you for your help!
Jared
You're welcome.
Kevin