Learn CSS

Style your website and make it stand out with our CSS tutorials. From basic layouts to advanced effects and animations, we'll help you level up your design skills.

All CSS content:

  1. Understanding CSS Inheritance (Inherit, Initial, Unset, and Revert)

    Understanding CSS Inheritance (Inherit, Initial, Unset, and Revert)

    Tutorial Beginner

    In this tutorial I’ll explain how the confusing world of CSS inheritance works. We’ll look at the inherit, initial, unset, and revert CSS keywords.

  2. How to Use New CSS “:is()” for Easy Element Targeting

    How to Use New CSS “:is()” for Easy Element Targeting

    Tutorial Beginner

    The new CSS :is() pseudo-class is shaping up to become a great way to target elements, saving on lines and lines of code, and keeping CSS as readable as...

  3. Demystifying CSS Pseudo-Classes (:nth-child vs. :nth-of-type)

    Demystifying CSS Pseudo-Classes (:nth-child vs. :nth-of-type)

    Tutorial Beginner

    Selectors used to target elements depending on their “state” are called pseudo-classes. nth-child and nth-of-type are pseudo-classes; let’s learn more about...

  4. How to Build an Accordion Component With the CSS Checkbox Hack

    How to Build an Accordion Component With the CSS Checkbox Hack

    Tutorial Intermediate

    In this short tutorial, we’ll learn how to build a CSS-only flexible accordion component by taking advantage of what’s known as the “CSS checkbox hack...

  5. What is CSS Specificity and How Does it Work?

    What is CSS Specificity and How Does it Work?

    Tutorial Beginner

    When working with CSS conflicting styles can be a thorn in your side, especially when you don’t know where the conflict is originating from. This tutorial...

  6. 7 CSS Units You Might Not Know About

    7 CSS Units You Might Not Know About

    Tutorial Beginner

    Today, I'm going to introduce you to some CSS tools you might not have known about before. These tools are each units of measurement, like pixels or ems, but...

  7. How to Create a Responsive Form Using TailwindCSS

    How to Create a Responsive Form Using TailwindCSS

    Tutorial Beginner

    The default approach to building websites when working with HTML and CSS is to write the structure in the HTML file and implement the styles in a CSS file....

  8. Sticky Positioning Without JavaScript (Thanks to CSS Position: Sticky)

    Sticky Positioning Without JavaScript (Thanks to CSS Position: Sticky)

    Tutorial Intermediate

    Sticking elements when the user scrolls to a certain point is a common pattern in modern web design. This behaviour has now become a standard (CSS position:...

  9. Solving Problems With CSS Grid: The Gantt Chart

    Solving Problems With CSS Grid: The Gantt Chart

    Tutorial Beginner

    We recently published a tutorial explaining how to build a JavaScript-driven Gantt Chart. I think it’s the perfect case study for CSS Grid, so in this...

  10. How to Build a Simple Gantt Chart With CSS and JavaScript

    How to Build a Simple Gantt Chart With CSS and JavaScript

    Tutorial Intermediate

    So far in our series of CSS chart tutorials, we've learned how to create different types of charts. Today we'll continue this journey. Specifically, we'll...

  11. Style Your Apps With the Tailwind CSS Framework

    Style Your Apps With the Tailwind CSS Framework

    Tutorial Beginner

    Enjoy a tailwind in your next web development project! Try our brand new course, Style Your Apps With the Tailwind CSS Framework.

  12. A Guide to Animation Performance on the Web

    A Guide to Animation Performance on the Web

    Course Intermediate

    On today’s web, animations play a big role in user experience and the delivery of information. The days of slow browsers are long gone, and the browsers we...