Can CSS hide the second entry of same class?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4434
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Can CSS hide the second entry of same class?

Post by simonmlewis »

We have a bit of an issue with a Wordpress Plugin, whereby on variable products it seems to add two DIVs with the same class IDs twice. So it adds it before the In Stock, and again after the In Stock.

If you select the checkboxes within the DIVs and submit, the additional products within them do post fine.

We just want rid of the second set - the 'duplicate'.

I wondered if there was a way in CSS to identify the second entry of the same DIV and then assign Display: none to it.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
thinsoldier
Forum Contributor
Posts: 367
Joined: Fri Jul 20, 2007 11:29 am
Contact:

Re: Can CSS hide the second entry of same class?

Post by thinsoldier »

Warning: I have no idea what I'm talking about.
Post Reply