#css-nesting

[ follow ]
#css
Web development
fromMedium
5 days ago

CSS you didn't know you could style

CSS can style native browser elements like user selection highlights and scrollbars, enhancing the overall design of a website.
fromCSS-Tricks
1 week ago
Web development

What's !important #9: clip-path Jigsaws, View Transitions Toolkit, Name-only Containers, and More | CSS-Tricks

Web development
fromWebKit
1 week ago

Name-only @container queries: A solution to the naming wars

Name-only @container queries simplify styling by improving scoping without increasing specificity, addressing conflicts in CSS for elements with similar names.
Web development
fromMedium
5 days ago

CSS you didn't know you could style

CSS can style native browser elements like user selection highlights and scrollbars, enhancing the overall design of a website.
jQuery
fromCSS-Tricks
2 weeks ago

Selecting a Date Range in CSS | CSS-Tricks

A date range selector allows users to choose a time frame for various scheduling and booking tasks.
JavaScript
fromRubyflow
2 weeks ago

Practical CSS: simplifying UI code with pseudo-classes

CSS pseudo-classes can simplify UI interactions by handling presentation logic, allowing JavaScript to focus on behavior.
Web development
fromCSS-Tricks
1 week ago

What's !important #9: clip-path Jigsaws, View Transitions Toolkit, Name-only Containers, and More | CSS-Tricks

Clip-path jigsaws and view transitions toolkit enhance web design capabilities with new CSS features and utilities.
Web development
fromWebKit
1 week ago

Name-only @container queries: A solution to the naming wars

Name-only @container queries simplify styling by improving scoping without increasing specificity, addressing conflicts in CSS for elements with similar names.
#responsive-design
Typography
fromPiccalilli
3 days ago

The end of responsive images

Responsive image markup significantly enhances web performance and user experience, stemming from years of collaborative development efforts.
UX design
fromA List Apart
3 days ago

Enhancing Web Design: Recognizing Accessibility Issues Now

Accessibility is crucial in design, as poor design can lead to life-altering consequences for users.
#markdown
Vue
fromRaymondcamden
6 days ago

Building a Simple Markdown PWA App

A Markdown viewer app was built using Electron, focusing on simplicity and functionality for viewing Markdown files.
Typography
fromCSS-Tricks
4 days ago

Enhancing Astro With a Markdown Component | CSS-Tricks

Using a Markdown Component simplifies markup and enhances typographic symbols in an Astro project.
Vue
fromRaymondcamden
6 days ago

Building a Simple Markdown PWA App

A Markdown viewer app was built using Electron, focusing on simplicity and functionality for viewing Markdown files.
Typography
fromCSS-Tricks
4 days ago

Enhancing Astro With a Markdown Component | CSS-Tricks

Using a Markdown Component simplifies markup and enhances typographic symbols in an Astro project.
#javascript
Node JS
fromAllthingssmitty
6 days ago

Why I don't chain everything in JavaScript anymore - Matt Smith

Chaining methods in JavaScript can complicate readability and debugging, making step-by-step coding often clearer and easier to manage.
Node JS
fromAllthingssmitty
6 days ago

Why I don't chain everything in JavaScript anymore - Matt Smith

Chaining methods in JavaScript can complicate readability and debugging, making step-by-step coding often clearer and easier to manage.
UX design
fromSmashing Magazine
4 days ago

The UX Designer's Nightmare: When "Production-Ready" Becomes A Design Deliverable - Smashing Magazine

The role of UX designers is evolving to include technical skills due to AI integration, impacting user experience and design responsibilities.
Typography
fromCsswizardry
2 weeks ago

font-family Doesn't Fall Back the Way You Think - CSS Wizardry

Font-family declarations are self-contained and do not inherit fallback options from parent elements.
Web development
fromCSS-Tricks
1 week ago

7 View Transitions Recipes to Try | CSS-Tricks

View transitions enhance user experience and are supported by major browsers, but require careful setup and understanding of animation types.
#web-development
UX design
fromSmashing Magazine
3 weeks ago

A Practical Guide To Design Principles - Smashing Magazine

Design principles align teams, inform decisions, and embody organizational values, serving as essential tools in the design process.
#css-corner-shape-property
fromCSS-Tricks
1 month ago

An Exploit ... in CSS?! | CSS-Tricks

Google credits security researcher Shaheen Fazim with reporting the exploit to Google. The dude's LinkedIn says he's a professional bug hunter, and I'd say he deserves the highest possible bug bounty for finding something that a government agency is saying "in CSS in Google Chrome before 145.0.7632.75 allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page."
Information security
Web design
fromPiccalilli
1 month ago

Building dynamic toggletips using anchored container queries

Chrome 143 introduces anchored container queries, enabling dynamic styling based on active fallback positions in anchor positioning layouts.
Web development
fromCsswizardry
3 weeks ago

When All You Can Do Is All or Nothing, Do Nothing - CSS Wizardry

Web performance should be integrated from the start, avoiding blanket optimizations that can worsen page load times.
JavaScript
fromCSS-Tricks
2 months ago

Spiral Scrollytelling in CSS With sibling-index() | CSS-Tricks

Modern CSS features like scroll-timeline() and sibling-index() can animate hundreds of elements smoothly, reducing JavaScript performance bottlenecks in scrollytelling.
fromSmashing Magazine
2 months ago

Unstacking CSS Stacking Contexts - Smashing Magazine

Stacking contexts are incredibly useful, but they're also widely misunderstood and often mistakenly created, leading to a slew of layout issues that can be tricky to solve. Have you ever set z-index: 99999 on an element in your CSS, and it doesn't come out on top of other elements? A value that large should easily place that element visually on top of anything else, assuming all the different elements are set at either a lower value or not set at all.
Web design
fromCSS-Tricks
2 months ago

Potentially Coming to a Browser :near() You | CSS-Tricks

By how much? Well, that would depend on the value of the <length> argument provided. Thomas Walichiewicz, who proposed :near(), suggests that it works like this: button:near(3rem) { /* Pointer is within 3rem of the button */ } For those wondering, yes, we can use the Pythagorean theorem to measure the straight-line distance between two elements using JavaScript ("Euclidean distance" is the mathematical term), so I imagine that's what would be used behind the scenes here.
UX design
Web development
fromSmashing Magazine
1 month ago

Dropdowns Inside Scrollable Containers: Why They Break And How To Fix Them Properly - Smashing Magazine

Dropdowns can get clipped inside scrollable panels due to overflow, stacking contexts, and containing blocks.
fromblog.logrocket.com
2 months ago

Which UI libraries/frameworks support the Linear aesthetic? - LogRocket Blog

Teams often use customer and user interchangeably until it breaks alignment. Here's how separating the two clarifies research, prioritization, and messaging across B2C, B2B, and B2B2C products.
UX design
Web development
fromCSS-Tricks
1 month ago

JavaScript for Everyone: Destructuring | CSS-Tricks

JavaScript is accessible to designers and non-specialists; writing any JavaScript code qualifies someone as a JavaScript developer regardless of formal training or background.
Web development
fromCSS-Tricks
1 month ago

What's !important #7: random(), Folded Corners, Anchored Container Queries, and More | CSS-Tricks

CSS features including random(), random-item(), clip-path folded corners, backdrop-filter, tabular-nums, Popover API, and anchor positioning enable modern web design with improved functionality and visual effects.
fromSitePoint Forums | Web Development & Design Community
1 month ago

Why My CSS Changes Don't Reflect Immediately? Common Reasons & Fixes

Browser cache - Sometimes the browser is still loading the old CSS file. A hard refresh (Ctrl + F5) usually fixes it. Wrong file linked - Double-check if your HTML is actually linked to the correct CSS file. Specificity issues - Another CSS rule might be overriding your changes.
Web development
UX design
fromSmashing Magazine
3 months ago

Rethinking "Pixel Perfect" Web Design - Smashing Magazine

Pixel-perfect design is misleading and counterproductive; redefine perfection for a multi-device, fluid web built with modern tooling and AI-enhanced workflows.
fromCssence
2 months ago

Breakpoints

Using such a resolution in the web browser would render a tiny illegible desktop site. To avoid that, CSS pixels add a layer of abstraction. Initially the amount of actual pixels compared to CSS pixels was simply a 2x or 3x conversion, but these days fractional scaling is also common.
Web design
Web development
fromCSS-Tricks
1 month ago

The Different Ways to Select in CSS | CSS-Tricks

CSS pseudo-classes like :root, :scope, and the & selector provide different ways to target and style the root element, with :root offering higher specificity and :scope providing semantic clarity for global scope declarations.
Web development
fromCSS-Tricks
1 month ago

The Value of z-index | CSS-Tricks

Z-index values in large projects often become chaotic magic numbers due to lack of visibility across teams, leading to an arms race of increasingly higher values rather than a systematic approach.
Web development
fromCSS-Tricks
1 month ago

Abusing Customizable Selects | CSS-Tricks

Web browsers' new customizable select feature enables developers to create visually unique and interactive dropdown menus with CSS and HTML, expanding creative possibilities beyond standard form elements.
fromCSS-Tricks
1 month ago

What's !important #6: :heading, border-shape, Truncating Text From the Middle, and More | CSS-Tricks

@keyframes animations can be named using strings, allowing syntax like @keyframes "@animation" { /* ... */ } with corresponding animation: "@animation" declarations. This capability has existed for 11 years across browsers, yet remains relatively unknown to many developers seeking alternative keyframe naming conventions beyond standard identifier formats.
Web development
fromSitePoint Forums | Web Development & Design Community
2 months ago

Custom CSS code

Can you formulate the css code to apply the glassmorphism (GM) effect b/g to the tasks below: Glassmorphism code snippet background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); 1.1 Apply the GM effect to the Share B/G, Gallery B/G &amp; Vid B/G icons during onmouseout. 1.2 Apply the GM effect to the Social icons pop-up panel B/G during onmousehover on the Share icon.
Web development
fromprojectwallace.com
2 months ago

The CSS Selection - 2026 Edition - Project Wallace

Welcome to The CSS Selection 2026! In this article we're having a look at how CSS is used at scale on over 100,000 websites. We'll look at what things are common on most websites and discover interesting outliers. This is the first edition of what I hope to be many, so this is meant as a baseline for future editions, setting up the first numbers to compare with in coming years.
Web development
Web development
fromFrontendmasters
1 month ago

The Big Gotcha of Anchor Positioning

Anchor Positioning in CSS has significant limitations preventing elements from being positioned relative to others regardless of DOM placement, requiring careful consideration of element ordering and positioning values.
Web development
fromSmashing Magazine
3 months ago

Smashing Animations Part 8: Theming Animations Using CSS Relative Colour - Smashing Magazine

CSS relative colour values and OKLCH enable simpler, controllable theming and dynamic animation of SVG graphics, including time-based and interaction-based palette changes.
Web development
fromCSS-Tricks
1 month ago

Yet Another Way to Center an (Absolute) Element | CSS-Tricks

Absolutely-positioned elements can be centered using `place-self: center` with `inset: 0` in three lines of CSS, replacing the traditional `top: 50%; left: 50%; translate: -50% -50%` method.
fromCSS-Tricks
2 months ago

What's !important #4: Videos & View Transitions, Named Media Queries, How Browsers Work, and More | CSS-Tricks

Chris Coyier demonstrates how to maintain a video's state across different pages using CSS view transitions. He notes that this is fairly easy to do with same-page view transitions, but with multi-page view transitions you'll need to leverage JavaScript's pageswap event to save information about the video's state in sessionStorage as a JSON string (works with audio and iframes too), and then use that information to restore the state on pagereveal. Yes, there's a tiiiiny bit of audio stutter because we're technically faking it, but it's still super neat.
Web development
fromCSS-Tricks
2 months ago

Making a Responsive Pyramidal Grid With Modern CSS | CSS-Tricks

Support is limited to Chrome only because this technique uses recently released features, including corner-shape, sibling-index(), and unit division. In this article, we will explore another type of grid: a pyramidal one. We are still working with hexagon shapes, but a different organization of the elements. A demo worth a thousand words: For better visualization, open the full-page view of the demo to see the pyramidal structure. On screen resize, you get a responsive behavior where the bottom part starts to behave similarly to the grid we created in the previous article!
Web development
fromAlways Twisted
2 months ago

Introducing ReliCSS: A Tool for Front-End Archaeology

As a contracting front-end developer and Design Systems consultant, I don't always get to work on new things. Sometimes I work within codebases. Sometimes alongside them. Sometimes these codebases are years and years old. When you dive into these projects, you're not just reading code, you're excavating years of decisions, technological limitations, and creative workarounds from days gone by. Over the last decade, I've called this Front-End Archaeology.
Web development
fromSitePoint Forums | Web Development & Design Community
11 years ago

IE will not read external stylesheet

After searching and searching, it seems that you and I are the only ones in the world who have this problem. In the F12 console, I found: SEC7113 "CSS was ignored due to mime type mismatch". Discussion here: MSDN. It seems that IE9 and above "sniff" the HTTP headers for the correct MIME type, and ignore JS and CSS that have the wrong header. When it fetches files from the local filesystem, it should disable this sniffing, since there aren't any real HTTP headers. But our two computers, (and nobody else's) are sniffing and ignoring headers.
Web development
Web development
fromCSS-Tricks
2 months ago

What's !important #5: Lazy-loading iframes, Repeating corner-shape Backgrounds, and More | CSS-Tricks

Topics include developer productivity losses, responsive breakpoint timing, lazy-loading above-the-fold iframes, SVG corner-shape backgrounds, and CSS usage research.
[ Load more ]