CSS-Trickz! also ready to join Digital Ocean

You probably want CSS-Tricks

7 View Transitions Recipes to Try

Written by: Sunkanmi Fafowora

Craving for a view transition? Sunkanmi has lots of common transitions you can drop into your website right now!

Continue reading "7 View Transitions Recipes to Try" at CSS-Tricks

Quick Hit #122

Written by: Daniel Schwarz

Chrome 147 becomes the first to implement the CSSPseudoElement JavaScript interface, and allow the startViewTransition() method to be called on […]

Continue reading "Quick Hit #122" at CSS-Tricks

Quick Hit #121

Written by: Daniel Schwarz

Chrome 147 becomes the first to ship border-shape as well as the scroll range for view timelines.

Continue reading "Quick Hit #121" at CSS-Tricks

Selecting a Date Range in CSS

Written by: Preethi

A clever approach for selecting multiple dates on a calendar where the :nth-child()‘s “n of selector” syntax does all the heavy lifting… even in the JavaScript.

Continue reading "Selecting a Date Range in CSS" at CSS-Tricks

Quick Hit #120

Written by: Daniel Schwarz

Chrome 147 ships contrast-color() (the Color Level 5 version that only resolves to black or white), making it baseline.

Continue reading "Quick Hit #120" at CSS-Tricks

Alternatives to the !important Keyword

Written by: Saleh Mubashar

Cascade layers, specificity tricks, smarter ordering, and even some clever selector hacks can often replace !important with something cleaner, more predictable, and far less embarrassing to explain to your future self.

Continue reading "Alternatives to the !important Keyword" at CSS-Tricks

Quick Hit #119

Written by: Daniel Schwarz

Quiz: CSS or BS?

Continue reading "Quick Hit #119" at CSS-Tricks

Looking at New CSS Multi-Column Layout Wrapping Features

Written by: Abhishek Pratap Singh

Chrome 145 introduces the column-height and column-wrap properties, enabling us to wrap the additional content into a new row below, creating a vertical scroll instead of a horizontal scroll.

Continue reading "Looking at New CSS Multi-Column Layout Wrapping Features" at CSS-Tricks

Quick Hit #118

Written by: Daniel Schwarz

font-size-adjust calculator.

Continue reading "Quick Hit #118" at CSS-Tricks

Making Complex CSS Shapes Using shape()

Written by: Temani Afif

Creating rectangles, circles, and rounded rectangles is the basic of CSS. Creating more complex CSS shapes such as triangles, hexagons, stars, hearts, etc. is more challenging but still a simple task if we rely on modern features.

Continue reading "Making Complex CSS Shapes Using shape()" at CSS-Tricks

Front-End Fools: Top 10 April Fools’ UI Pranks of All Time

Written by: Lee Meyer

These are the historical pranks I consider the top 10 most noteworthy, rather than the “best.” You’ll see that some of them crossed the line and/or backfired.

Continue reading "Front-End Fools: Top 10 April Fools’ UI Pranks of All Time" at CSS-Tricks

Quick Hit #117

Written by: Daniel Schwarz

Safari TP 240 becomes the first to ship the revert-rule CSS keyword, which rolls the rule back to when it […]

Continue reading "Quick Hit #117" at CSS-Tricks