DEV Community


Discussion on: 3 Cool CSS Tricks to Impress Your Friends at Parties

prkr32 profile image
prkr32 • Edited

Dumb question: I am having a hard time repeating this for a few different hidden divs that display on click. Whenever I click any of the labels, only the first hidden div displays. Not quite sure how to fix it. I have tried making multiple .example classes (.example1, .example2, etc.) and that doesn't work either.

Thanks so much for this article though! I have been looking for an easy way to do trick number 3 without JS for a long time and this is a great find!