WebsiteBaker Support (2.8.x) > Bakery Shop

Item loop first last div

(1/2) > >>

daydreamer:
On the item loop I need the first and last divs to have a class of first & last. so the fist div has margin-left 0 and last div has margin-right 0. How can this be done?

freeSbee:
Hi daydramer

Use CSS selectors like :first-child and :last-child.

Regards Christoph

daydreamer:
Ok great thanks

daydreamer:
Could you show me an example please

daydreamer:
The problem I have is I'm using skeleton responsive and my looped items are in a four column div

The first would need alpha
and the last would need omega so it doesn't work with css first-child last-child

Navigation

[0] Message Index

[#] Next page

Go to full version