Tips

Posts tagged "Tips"

  • Tips 2 minute read Jan 10, 2025

    Use the description list element

    Need to display a list where you have a key (or title) and a value? The description list element is perfect for this.

  • Tips 4 minute read Dec 15, 2024

    Simple progressive enhancements in CSS

    CSS has changed a lot in the last couple of years. It feels like we're getting new features monthly now. New features are well and all, but it's hard to keep up with what's fully supported or safe to use.

  • Tips 2 minute read Nov 14, 2024

    Go-to class names

    Naming things is hard, but when I create components I usually go for the same class names.

  • Tips 4 minute read Nov 12, 2024

    The :where selector

    CSS has gotten a lot of new selectors in the last couple of years. Here's how the :where selector works, and why you should use it.

  • Tips 2 minute read Oct 24, 2024

    Use logical properties

    When you want to define something directional, like padding-left or margin-top, it can be take into consideration what languages your website should support.

  • Tips 8 minute read Oct 18, 2024

    How to style CMS-generated rich text

    Styling is easy when you control the markup. You can add classes to your liking, and style them accordingly. Dealing with CMS-generated HTML however is another thing, having no control over the markup and attributes.

  • Tips 4 minute read Oct 5, 2024

    Nesting in SCSS

    In SCSS it's possible to nest your CSS. It speeds up your workflow, but it also invites you to overdo it. Here's my two cents when it comes to when and how you should nest your code.

  • Tips 8 minute read Sep 12, 2024

    Embrace simplicity

    Building for the web has never been easier, but it's also never been easier to over-engineer the simplest of things.

  • Tips 8 minute read Jun 28, 2024

    Icons with inline SVG

    Adding icons to a website can be done in many different ways, but my favorite approach is to use SVGs inline in my HTML. Here's how.

  • Tips 3 minute read Jun 17, 2024

    Pill buttons

    Tips on how to create pill shaped buttons with CSS.

  • Tips 5 minute read Nov 23, 2023

    My CSS reset

    A quick breakdown of how I reset the browser's default styling before I start writing my first lines of CSS.