Skip to main

Posts by Date

Page 7 of 13

2019 Posts

  1. CSS code snippet with overflow wrap options
    Video post type

    How do you wrap long words in CSS?

    None of the solutions are perfect, but we have some options

    Horizontal text overflow has always been difficult to manage on the web. The default visible overflow is designed to make sure content remains accessible no matter the size of a containing box, but it’s not our only option.

    see all Video posts
  2. CSS code snippet of scroll-snap type and align
    Video post type

    Scroll Snap in CSS

    Without any JavaScript or “scrolljacking”

    When we’re scrolling down a page, or through a gallery of images, snap-targets can help guide us from one section or image to the next. In the past, developers have used JavaScript to hijack scrolling, but now we can manage scroll alignment directly in CSS with only a few lines…

    see all Video posts
  3. CSS snippet showing display value options
    Video post type

    Inner & Outer Values of the Display Property

    Allow us to be more explicit & expressive about layouts

    The display property has been in CSS from the beginning, handling everything from block and inline boxes to list-items and full layout systems like flexbox or grid. Now the display syntax is getting an upgrade to match it’s multiple uses.

    see all Video posts
  4. Shop Talk Show Podcast
    Podcast post type

    On Sass & CSS

    I drop by the show to talk about Sass in 2019, design tokens, OddBird, unused CSS, new CSS properties, and Dave & Chris’ explanation of revert.

    see all Podcast posts
  5. Firefox Developer Tools shows helpful information about inactive CSS
    Video post type

    Why isn’t this CSS doing anything?

    Have you ever set a width in CSS, and… nothing happens?

    There are a number of property & value combinations that can lead to CSS being inactive, and now Firefox will tell you why. Open the developer tools, and look for the greyed-out property with an info-box on hover.

    see all Video posts
  6. Inspecting grid with Firefox Developer Tools
    Video post type

    Faster Layouts with CSS Grid

    And subgrid, landing on Dec 3

    For years, we’ve struggled to build resilient layouts on the web, but CSS Grid promises to change all that – and you can start using it now, with only a few properties and basic concepts.

    see all Video posts
  7. CSS Snippet for CSS subgrid to make forms
    Video post type

    Laying out Forms using Subgrid

    and fallbacks for legacy browsers

    It’s a common pattern to align form labels and inputs in grid-like layout. I’ll show you how to do it quickly using CSS subgrid, with several quick fallbacks.

    see all Video posts
  8. CSS snippet with card layout demo
    Video post type

    Subgrid for Better Card Layouts

    and fallbacks for legacy browsers

    Card layouts are popular on the web, rows and columns of boxes with similar content. CSS grids can help align those cards, but it’s still be hard to line-up content inside the cards – headers and footers that might need more or less room.

    see all Video posts
  9. CSS snippet showing display revert
    Video post type

    What does revert do in CSS?

    And how is it different from unset or initial?

    I’ve often used initial and unset in my CSS – global keywords that can be applied to any property. The difference is small, but important: unset allows inheritance, while initial does not. But then Firefox implemented revert and I was confused – how is this one different from the others?

    see all Video posts
  10. Link post type

    Introducing Sass Modules

    Sass recently launched a major new feature you might recognize from other languages: a module system. The new syntax will replace @import with @use and @forward – a big step forward for making Sass partials (one of the language’s most used features) more readable, performant, and safe. This article goes…

    see all Link posts
  11. CSS cascade diagram
    Video post type

    Why is CSS so Weird?

    How can we design for an unknown & infinite canvas?

    CSS is the design language of the web – one of three core web languages – but it also seems to be the most contentious and often perplexing. It’s too easy and too hard, too fragile and too resilient. Love it or hate it, CSS is weird: not quite markup…

    see all Video posts
  12. Article post type

    Sass Modules, a Primer

    Getting started with @use and @forward

    Dart Sass (the primary Sass implementation) released version 1.23.0 last night with a major new feature: modules. This is a common feature in many languages – but for those of us who primarily write CSS, it can be a big mental shift. Let’s take a look at the basics.

    see all Article posts
  13. Video post type

    Announcing the Mozilla Developer Channel

    a gift from Mozilla (and OddBird)

    Over the summer, we’ve been working with Mozilla to help create a new resource for web professionals like us – with a mix of videos, articles, demos, and open source tools. Today, we’re excited to launch the video channel!

    see all Video posts
  14. Lists styled with cat emojis
    Video post type

    Styling Lists in CSS

    Powerful New CSS for Styling Bullets, Numbers, and List Markers

    When you create lists in HTML, browsers add bullet-points or numbers we call list markers. Now CSS gives us the tools to style those list markers, and even create our own!

    see all Video posts
  15. Bits and Pieces
    Link post type

    Why We Switched to React Hooks

    Hooks are the new hotness in building web applications with React. In this article for BitSrc, Erica separates fact from hyperbole to examine why OddBird has embraced the new Hooks API to deliver a better product to clients, and how we’ve benefited from having simple, consistent patterns to manage state…

    see all Link posts