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 tutorials:

  1. How to Add Custom CSS to Your WordPress Site

    How to Add Custom CSS to Your WordPress Site

    Tutorial Beginner

    You can add custom CSS to your WordPress site using four different methods. In this tutorial, we will look into each technique, see how each one works step...

  2. How to Lint CSS Using Stylelint

    How to Lint CSS Using Stylelint

    Tutorial Beginner

    Linters have been around for a good while; but if you’re new to CSS this might be the first you’ve heard about them. A CSS linter will keep your stylesheets...

  3. How to Build a Simple Slideshow With the CSS Checkbox Hack

    How to Build a Simple Slideshow With the CSS Checkbox Hack

    Tutorial Intermediate

    In this new tutorial, we’ll learn how to create a fully functional, responsive image slideshow with thumbnails, without JavaScript.

  4. CSS Basics: Understanding Collapsing Margins

    CSS Basics: Understanding Collapsing Margins

    Tutorial Beginner

    There is a situation where the margin between one element and that of a neighbor will merge into a unified space. This is a “collapsing margin”, and in this...

  5. 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.

  6. 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...

  7. 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...

  8. 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...

  9. 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...

  10. 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...

  11. 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....

  12. 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:...