#css

[ follow ]
Web development
fromCSS-Tricks
14 hours 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
6 days 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
4 days 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
5 days 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 2 weeks

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
1 month 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
1 week 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
1 week 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 week 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
#html
UX design
fromCSS-Tricks
3 months ago

Getting Creative With HTML Dialog | CSS-Tricks

HTML dialog element improves the accessibility and style of dialogue boxes, making them easier to customize.
Web development
fromCSS-Tricks
2 weeks 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
fromjQuery Script
3 weeks 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
3 weeks 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
3 weeks 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
4 weeks 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
#accessibility
fromCSS-Tricks
1 month ago
UX design

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
3 months ago
UX design

What We Know (So Far) About CSS Reading Order | CSS-Tricks

CSS properties 'reading-flow' and 'reading-order' ensure focus order matches visual order, enhancing accessibility compliance.
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
1 month 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
1 month 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
1 month 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
#svg
#grid-layout
LA food
fromPitchfork
1 month 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
1 month 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
UX design
fromMeyerweb
3 months ago

Masonry, Item Flow, and... GULP?

Masonry layout combines flexbox and grid principles; new Item Flow proposal seeks to improve its CSS implementation.
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.
#responsive-design
fromCSS-Tricks
2 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
2 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
2 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.
#user-experience
JavaScript
fromCSS-Tricks
3 months ago

Better CSS Shapes Using shape() - Part 1: Lines and Arcs | CSS-Tricks

The new shape() function in CSS revolutionizes how developers create and customize shapes, allowing for more flexibility and simplicity.
[ Load more ]