A Web Design & Development Blog

CSS Accordion

Below is an accordion that was created with css and html, no javascript or jquery required.
The accordion uses the :target psuedo element in the css to target certain divs. There is also a target fix to avoid any jump when an anchor is selected.

See the Pen CSS Accordion by pollardld (@pollardld) on CodePen.


Leave a Reply

Your email address will not be published. Required fields are marked *