Series

Front-end

Here's a collection of CSS tips and tricks, combined with some HTML and JS.

Articles in this series

Delightful accordion

Feb 19, 202117 min read 139 views

Accordions are useful when you want to present key information right away and give interested users the ability to learn more about the topic with a single click. In this tutorial, you'll create a stylish accordion. Along the way, you'll learn how to...

Delightful accordion
CSS specificity - What overwrites what
Customizing <li> bullets
CSS pseudo-elements: `before` and `after`