#css

[ follow ]
Web development
fromUtilitybend
8 hours ago

Styling siblings with CSS has never been easier. Experimenting with sibling-count and sibling-index | utilitybend

sibling-index() and sibling-count() enable selecting elements by position among siblings, simplifying staggered animations and conditional CSS logic.
Typography
fromTerence Eden's Blog
1 week ago

Targetting specific characters with CSS rules

CSS can target specific Unicode characters by loading different fonts with @font-face and unicode-range, enabling per-character styling without extra markup.
Web development
fromWebKit
3 days ago

Position-area: Clear and explicit or short and sweet?

A proposed center-span-inline-end CSS keyword would explicitly specify the start and end when spanning columns, increasing clarity at the cost of slight verbosity.
Web development
fromCSS-Tricks
3 days ago

Touring New CSS Features in Safari 26 | CSS-Tricks

Safari 26.0 is a major release adding 75 new features, 3 deprecations, and 171 improvements, including significant new CSS capabilities like anchor positioning.
#svg
from2ality
6 days ago

CSS wish: inner breakpoints

One important recent next step were container queries: .parent { container-name: parent; container-type: inline-size; } article { flex-direction: row; } @container parent (width < 40rem) { article { flex-direction: column; } } Instead of reacting to viewport size changes, we can react to size changes of HTML elements. With media queries, the whole page was responsive. With container queries, individual user interface elements can be responsive, too.
Web development
fromJoshwcomeau
1 week ago

The Big Gotcha With @starting-style * Josh W. Comeau

Introduction Have you heard of the @starting-style at-rule? It's an interesting new tool that lets us use CSS transitions for enter animations. For example, let's suppose we have some UI where elements get added dynamically to the page, and we want them to fade in: When you click the "Add Element" button, a new purple square is generated and added to the page, and a CSS keyframe animation fades it in over 1 second.
Web development
fromCSS-Tricks
1 week ago

CSS Typed Arithmetic | CSS-Tricks

CSS typed arithmetic is genuinely exciting! It opens the door to new kinds of layout composition and animation logic we could only hack before. The first time I published something that leaned on typed arithmetic was in this animation: But before we dive into what is happening in there, let's pause and get clear on what typed arithmetic actually is and why it matters for CSS. Browser Support: The CSS feature discussed in this article,
UX design
#html
fromSmashing Magazine
1 week ago

Ambient Animations In Web Design: Principles And Implementation (Part 1) - Smashing Magazine

Creating motion can be tricky. Too much and it's distracting. Too little and a design feels flat. Ambient animations are the middle ground - subtle, slow-moving details that add atmosphere without stealing the show. Unlike timeline-based animations, which tell stories across a sequence of events, or interaction animations that are triggered when someone touches something, ambient animations are the kind of passive movements you might not notice at first. But, they make a design look alive in subtle ways.
Web design
#responsive-design
Web design
fromSarasoueidan
2 weeks ago

CSS to speech: alternative text for CSS-generated content

CSS ::before and ::after pseudo-elements insert presentational content that can contribute textual content to an element's accessible name but are not exposed in accessibility tree.
Web development
fromIshadeed
2 weeks ago

The Basics of Anchor Positioning

Anchor positioning lets elements be positioned relative to non-ancestor elements using CSS anchor definitions and inset properties, avoiding fragile HTML restructuring.
Web development
fromCSS-Tricks
2 weeks ago

The "Most Hated" CSS Feature: cos() and sin() | CSS-Tricks

CSS trigonometric functions like sin() and cos() are underused and deserve practical, chunked tutorials to demonstrate useful applications.
UX design
fromPiccalilli
3 weeks ago

While you're fixing the fun stuff, fix the important stuff too

Avoid hover jitter by ensuring hover state persists when pointer moves among element children, using parent-level targets, extra padding, or non-hacky layout adjustments.
#corner-shape
fromCSS-Tricks
3 weeks ago

Compiling Multiple CSS Files into One | CSS-Tricks

What I like about Stu's stab at this is that it's an ongoing journey rather than a wholesale switch. In fact, he's out with a new post that pokes specifically at compiling multiple CSS files into a single file. Splitting and organizing styles into separate files is definitely the reason I continue to Sass-ify my work. I love being able to find exactly what I need in a specific file and updating it without having to dig through a monolith of style rules.
Web development
fromCSS-Tricks
3 weeks ago

What're Your Top 4 CSS Properties? | CSS-Tricks

Seems like a pretty straightforward thing to answer, right? But like Donnie says, this takes some strategy. Like, say spacing is high on your priority list. Are you going to use margin? padding? Perhaps you're leaning into layout and go with gap as part of a flexbox direction... but then you're committing to display as one of your options. That can quickly eat up your choices!
Web design
Web design
fromkube.io
in 20 hours

Liquid Glass in the Browser: Refraction with CSS and SVG - kube.io

Recreate a Liquid Glass UI effect on the web by approximating optical refraction and specular highlights using CSS, SVG displacement maps, and simplified physics.
#web-development
Web development
fromLogRocket Blog
2 months ago

The CSS if() function: Conditional styling will never be the same - LogRocket Blog

The if() function in CSS enables true conditional styling directly within stylesheets, reducing complexity and improving maintainability.
Web design
fromCSS-Tricks
3 weeks ago

What You Need to Know About CSS Color Interpolation | CSS-Tricks

Color interpolation computes intermediate colors between two points to create palettes, gradients, transitions, and mix colors across color spaces using functions like color-mix().
Apple
fromWebKit
4 weeks ago

Release Notes for Safari Technology Preview 227

Safari Technology Preview Release 227 adds accessibility improvements, animation persistence and bug fixes, and multiple new CSS features for macOS Tahoe and Sequoia.
fromCSS-Tricks
1 month ago

Should the CSS light-dark() Function Support More Than Light and Dark Values? | CSS-Tricks

If you don't know, the light-dark() function takes two color arguments: one for light mode and one for dark mode. Hence, the name light-dark(). It toggles between the two light and dark values based on a user's preferences. Sara Joy has a wonderful article where you can get a much more detailed explanation. The key thing is that the function requires you to use the color-scheme property to activate those two color modes: :root { color-scheme: light dark; } .element { color: light-dark(brown, black); }
Web development
Web development
fromCSS-Tricks
1 month ago

CSS Elevator: A Pure CSS State Machine With Floor Navigation | CSS-Tricks

A pure-CSS elevator state machine uses @property-typed custom properties, counters, and pseudo-classes to animate floors, directions, and timing without JavaScript.
#javascript
fromSmashing Magazine
3 months ago
Mobile UX

Creating The "Moving Highlight" Navigation Bar With JavaScript And CSS - Smashing Magazine

The article demonstrates two methods for creating a moving-highlight navigation pattern using plain JavaScript and CSS.
fromwww.jqueryscript.net
3 months ago
Node JS

Weekly Web Design & Development News: Collective #608

This week's roundup features essential tools and libraries for JavaScript and CSS, focusing on performance and interactive features.
fromjQuery Script
1 month ago

jQuery Retro Flip Clock & Countdown Timer Plugin - FlipClock

Flip Clock is a jQuery plugin for creating a clock & countdown timer that displays information in a digital format on a split flap display. The clock & countdown timer can be fully customized via CSS and full-featured developer API. How to use it: 1. Include required FlipClock CSS in the head section of your page. <link rel="stylesheet" href="/path/to/compiled/flipclock.css" /> 2. Create a container for the clock. <div class="clock"></div> 3. Include jQuery library and the jQuery FlipClock plugin at the bottom of the page. <script src="/path/to/cdn/jquery.min.js"></script> <script src="/path/to/compiled/flipclock.min.js"></script>
JavaScript
fromFrontendmasters
1 month ago

Obsessing Over Smooth radial-gradient() Disc Edges

If you want to avoid using a pseudo-element or, even worse, children just for decorative purposes, then radial-gradient() seems to be the best solution. Especially in the case where you might need a bunch of such discs, more than the two pseudos available on an element. However, if we do something like this: Where r is the gradient disc radius, then we get jaggies, a step-like effect along the radial-gradient() disc, whereas one created with a pseudo-element has smooth-looking edges!
Web design
Web design
fromMeyerweb
1 month ago

To Infinity... But Not Beyond!

Using calc(infinity * length) on text properties causes extreme layout effects and reveals inconsistent computed-value handling across browsers, with Chrome most unpredictable.
Web design
fromCSS-Tricks
1 month ago

3D Layered Text: The Basics | CSS-Tricks

A bulging text effect can be created using advanced CSS techniques along with JavaScript for interactivity.
fromPiccalilli
1 month ago

Another article about centering in CSS

Centering in CSS is no longer an impossible task. Multiple methods such as flexbox and grid make it easy to achieve both vertical and horizontal centering.
Web design
UX design
fromCSS-Tricks
1 month ago

On Accessibility Conformance, Design Systems, and CSS "Base" Units | CSS-Tricks

Accessible web experiences require components designed to work collectively rather than in isolation.
fromCSS-Tricks
1 month ago

How to Prepare for CSS-Specific Interview Questions | CSS-Tricks

Responsive design is one of the fundamentals you'll be asked about. Building a responsive website means your layout, images, and typography adapt gracefully to any device or screen size.
Web development
fromCSS-Tricks
2 months ago

How to Discover a CSS Trick | CSS-Tricks

CSS tricks feel like discovering secret synergies between features, akin to chiseling a sculpture from marble or uncovering fossils, where unexpected pairings achieve the impossible.
Web development
Typography
fromOddBird
2 months ago

Designing for User Font-size and Zoom

User font-size preferences can enhance web readability, but defaults and variations create challenges in achieving a universally ideal experience.
fromSearch Engine Roundtable
2 months ago

Google On SEO & CSS

Google's guidelines recommend making CSS files crawlable. While CSS has implications for SEO, crawlers typically parse HTML for text content and ignore class names.
Web development
#grid-layout
fromPiccalilli
2 months ago
Web design

A handy use of subgrid to enhance a simple layout

CSS subgrid is essential for achieving consistent horizontal alignment of headings and summaries in a responsive grid layout.
fromFrontendmasters
3 months ago
Mobile UX

1fr 1fr vs auto auto vs 50% 50%

Columns with different definitions can behave similarly but have distinct impacts on layout, especially when gaps are introduced.
LA food
fromPitchfork
2 months ago

L7 to Celebrate 40th Anniversary With Los Angeles Concert Featuring Lunachicks and CSS

L7 celebrates its 40th anniversary with a special concert in Los Angeles featuring Lunachicks and CSS.
Apple
fromCSS-Tricks
2 months ago

Getting Clarity on Apple's Liquid Glass | CSS-Tricks

Liquid glass is a universal design system by Apple focusing on dynamic user interactions and fluidity across all platforms.
#animation
UX design
fromRaymondcamden
2 months ago

Cleaning Up My Print View with CSS Media Queries

Print versions should focus on essential content, omitting irrelevant elements such as ads, comments, and share options.
#animations
#web-design
fromCSS-Tricks
3 months ago
JavaScript

Poking at the CSS if() Function a Little More: Conditional Color Theming | CSS-Tricks

The if() CSS function enables conditional styling based on CSS variables, enhancing theming capabilities beyond the typical binary options.
fromSpeckyboy Design Magazine
3 months ago
Web design

8 CSS & JavaScript Snippets for Creating Sticky Elements - Speckyboy

Sticky elements improve usability on long web pages by keeping navigation accessible while scrolling.
Web development
fromCSS-Tricks
2 months ago

Better CSS Shapes Using shape() - Part 4: Close and Move | CSS-Tricks

The close command is important in defining shapes in CSS, but it is often unnecessary as browsers can handle shape closure automatically.
fromCSS-Tricks
3 months ago

KelpUI | CSS-Tricks

KelpUI is being designed to leverage modern CSS features and Web Components, while emphasizing utility, customizability, and simplicity in naming and specificity.
UX design
UX design
fromAtlaspuplabs
3 months ago

Liquid Glass, but in CSS

Apple's Liquid Glass design language can be approximated using CSS with effort, primarily in Chrome.
The Liquid Glass effect creates an illusion of depth and smoothness using visual techniques.
fromRaymondcamden
3 months ago

Links For You (6/22/25)

I've shared Josh Comeau links many times here and his ability to explain technical matter with incredibly simple and well-built demos is easily the best in the industry.
Web development
fromSitePoint Forums | Web Development & Design Community
3 months ago

HTTP using wrong file path trying to access CSS files

The issue lies in how relative paths work in HTML. When CSS files are linked using a relative path, they are referenced based on the location of the HTML document in the directory structure. In your case, if the webpage is located in the 'Folder' directory, the browser looks for the CSS files in 'http://Project/Folder/CSS/' but failing due to incorrect pathing leads to a 404 error.
Web development
Typography
fromCSS-Tricks
3 months ago

Better CSS Shapes Using shape() - Part 3: Curves | CSS-Tricks

The curve command in CSS shape() allows for greater control over drawing shapes using Bézier curves with one or two control points.
UX design
fromCSS-Tricks
3 months ago

Exploring the CSS contrast-color() Function... a Second Time | CSS-Tricks

The contrast-color() function simplifies color contrast decisions for web accessibility, but lacks flexibility and current browser support.
[ Load more ]