DEV Community

Discussion on: Toggle content on click without javascript (Yes you read that right)

Collapse
 
jdriviere profile image
J. Djimitry Rivière • Edited

Only 2 concerns I have with that approach, I suppose; and this is not because I want to downplay your solution at all.

  1. Because it uses the href attribute, it seems to register the link history, which means if the user would need to go back one page, he'd have to click the back button of his browser a few times, which can be an annoying aspect for the short attention-spanned people.
  1. Would it be a similar approach if one wanted to design a CSS-only tabular elements?

With that said, it's amazing what CSS can do by itself! (Nothing new, I know...)