February 5, 2016 at 5:36 am #237734
Is there a better or more efficient way of achieving this?
I’m basically wanting to select the first item in each row to remove its margin, marked in teal in my example. I’ve got it working with a bit of a hack but this content will be dynamic so it won’t really work long time.
I thought using nth child 7 would work but because of the odd number of items it doesn’t. Well I think thats why.
Take a look at my pen http://codepen.io/qwerty-design/pen/JGmYwo
Any tips most appreciated.
RichardFebruary 5, 2016 at 7:18 am #237738
February 5, 2016 at 8:33 am #237742
Thanks man you’ve cracked it! Deadline looming and I wanted something more robust than the hack I was using.
Thanks again very much appreciated!
You must be logged in to reply to this topic.