Search

Post types:
Categories:
🔖

CSS Remedy

Read Note

An in-progress project looking to create a CSS reset that creates modern defaults, rather than just focusing on standardising behaviour across browsers or removing irritating legacy features in …

🔖

CSS only carousel

Read Note

Carousels are the devil's work, but they remain incredibly useful and popular UI elements 😑 Having a solid implementation that will work without JavaScript, making it more lightweight and …

🔖

CSS @property superpowers

Read Note

Looks like the new CSS @property extension has landed in Chrome. Una has put together some interesting examples and explanations on the fallback mechanism in particular. Usage appears to be the same …

🔖

The mistakes of CSS

Read Note

It's fun to see which technical decisions the CSS working group officially consider "mistakes" ðŸ˜‚ I agree with most, though not sure how I feel about the counter-clockwise directional shorthand …

🔖

The CSS Cascade

Read Note

I don't think I've come across a clearer explanation of the full cascade before, nor one so beautifully crafted. An excellent resource and …

🔖

CSS Grid Track Options

Read Note

An excellent overview of (most of) the unit options you can use in CSS Grid columns and rows, with examples. (No …

🔖

Using CSS transitions on auto dimensions

Read Note

A selection of possible workarounds for animating CSS values with auto keywords (e.g. height, width, etc.). Not a huge fan of the Flexbox option, but the max-height trick is a very useful one to …

🔖

CSS regions: a history

Read Note

I have a vague memory of CSS Regions being talked about, but had completely forgotten them. It turns out that's likely because the spec has effectively been pulled. I think it's technically still out …

🔖

A modern CSS reset

Read Note

Andy always has some interesting thoughts about CSS, and this reset is no exception. Lots of interesting things here that fit very nicely with both my own experience and other resets that I've …

🔖

Accordion rows in CSS Grid

Read Note

When Eric first tweeted about the new design on his site, I thought something a bit unusual was going on with the CSS layout. I actually dove straight into the source that day and learnt a little …

🔖

Multicoloured text highlighting in cSS

Read Note

A clever UX idea discovered on Pink News: each paragraph of text has a different highlight colour, so as you select parts of an article to copy elsewhere it reveals the LGBTQA+ flag. They're using …

🔖

Josh's custom CSS reset

Read Note

Josh has added some additional thoughts to Andy's CSS reset. Personally, I like a combination of the two (with a dash of Stephanie's best practices thrown in for good measure), but wanted to capture …

🔖

Deep dive into the CSS contain property

Read Note

A simple way to look at what [contain] provides is that we can give hints to the browser about the relationships of the various elements on the page.The general …

🔖

Tailwind and the Femininity of CSS

Read Note

It will (hopefully) come as no surprise that I found myself nodding vigorously throughout this excellent article by Elaina, which shines a light on some of the reasons that CSS tooling can leave a …

🔖

What is utility-first CSS?

Read Note

As acerbic and cutting a critique of utility-first CSS (and that particular framework) as you would expect from Heydon, but hidden amongst the humour are some (also equally expected) jewels …

🔖

CSS variables for React devs

Read Note

Josh breaks down why and how you can use CSS variables more easily in React, specifically using styled-components. Honestly it feels a little terrifying how much is needed just to get basic …

🔖

CSS custom properties and the cascade

Read Note

CSS variables (aka CSS custom properties) do not have access to the cascade. That means they can't fall back to earlier rules, so if your variable is invalid, the browser will simply unset …

🔖

CSS animations within SVG

Read Note

A very neat little trick. Embedding @keyframes within your SVG <style> element makes it animate when it loads, whether rendered as an image or a background (or, I assume, inlined). It can even …

🔖

Firefox and SVG fill for CSS

Read Note

I ran into a bug recently where some SVGs on a website were seemingly ignoring a fill request. A quick check in dev tools showed that the CSS was being applied so... what gives? Turns out …

🔖

A defence of alphabetical CSS

Read Note

I am not a fan of alphabetical CSS, but Eric does a really solid job of arguing why, right now, it may be the best option. The short version is that CSS remains so woefully underutilised and …

🔖

Time to rethink mobile-first CSS?

Read Note

An interesting look at whether the current mobile-first paradigm is problematic. Ultimately, the title feels a little like click-bait; to me the solution proposed remains mobile-first, but suggests …