#highlight-pseudo-elements

[ follow ]
#css
Web development
fromCsswizardry
4 days ago

What Is CSS Containment and How Can I Use It? - CSS Wizardry

CSS containment optimizes browser performance by defining boundaries for DOM elements, allowing the browser to skip unnecessary work during changes.
Web development
fromCSS-Tricks
3 days ago

Making Complex CSS Shapes Using shape() | CSS-Tricks

Creating complex CSS shapes with randomness and curves is challenging but achievable using modern features and generators.
Web development
fromCsswizardry
4 days ago

What Is CSS Containment and How Can I Use It? - CSS Wizardry

CSS containment optimizes browser performance by defining boundaries for DOM elements, allowing the browser to skip unnecessary work during changes.
fromGSMArena.com
14 hours ago

Google Chrome will get lazy loading for video and audio elements

Lazy loading is a technique that defers loading some of the heavier elements of a page until the lighter ones are loaded, allowing users to start interacting with the content sooner.
Web design
UX design
fromMedium
20 hours ago

The invisible layer of UX most designers ignore

Designers must prioritize screen reader compatibility to ensure accessibility, as users rely on spoken content rather than visual elements.
#javascript
Node JS
fromFrontendmasters
4 days ago

What To Know in JavaScript (2026 Edition)

JavaScript's ECMAScript 2025 introduces new iterator methods and improved set functionalities, enhancing performance and usability for developers.
fromwww.sitepoint.com
1 month ago
JavaScript

How to display output of JavaScript calculation in html form?

Attach oninput handlers that read and parse price and quantity values, compute total (price * quantity), and immediately set the Total field value.
fromwww.jqueryscript.net
1 month ago
Web development

Weekly Web Design & Development News: Collective #643

Essential 2026-ready JavaScript and CSS libraries, AI tools, developer resources, design assets, and updated top-10 audits for modern web development.
Node JS
fromFrontendmasters
4 days ago

What To Know in JavaScript (2026 Edition)

JavaScript's ECMAScript 2025 introduces new iterator methods and improved set functionalities, enhancing performance and usability for developers.
Node JS
fromAlex MacArthur
6 days ago

Your options for preloading images with JavaScript

Preloading images in JavaScript can be achieved through various methods, with the best choice depending on specific circumstances.
Data science
fromMedium
2 days ago

Context matters... A lot

Large language models excel at tasks but struggle with context, leading to potentially misleading answers despite their capabilities.
Games
fromCSS-Tricks
4 days ago

Front-End Fools: Top 10 April Fools' UI Pranks of All Time | CSS-Tricks

Tech April Fools' Day announcements often blur the line between reality and joke, showcasing genuine innovations alongside humorous concepts.
Deliverability
fromCSS-Tricks
6 days ago

Form Automation Tips for Happier User and Clients | CSS-Tricks

A functional contact form is just the beginning; effective data handling is crucial for business workflows.
Typography
fromMass-driver
6 days ago

MD UI: a Typeface for Interfacing

Typefaces deserve careful design and consideration, balancing quality and legibility while acknowledging the challenges of achieving perfection.
#design-principles
UX design
fromSmashing Magazine
5 days 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.
UX design
fromSmashing Magazine
5 days 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.
UX design
fromSmashing Magazine
5 days 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.
UX design
fromSmashing Magazine
5 days 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.
Web development
fromCSS-Tricks
5 days ago

What's !important #8: Light/Dark Favicons, @mixin, object-view-box, and More | CSS-Tricks

SVG favicons can adapt to color schemes, and @mixin is progressing in CSS.
Marketing
from3blmedia
1 week ago

What We Learned From Talking to Hundreds of Web Designers a

Freelancers and agencies seek market-wide data to inform their business decisions and strategies.
jQuery
fromCSS-Tricks
1 week ago

Experimenting With Scroll-Driven corner-shape Animations | CSS-Tricks

Scroll-driven animations and CSS corner-shape property enable innovative design features in web development.
UX design
fromDesign Systems Report 2026
4 days ago

Design Systems Report 2026 - brought to you by zeroheight

Design systems are transitioning from inflated expectations to disillusionment, facing challenges in adoption, resource allocation, and executive support.
#web-development
fromwww.jqueryscript.net
2 months ago
JavaScript

Weekly Web Design & Development News: Collective #639

Weekly roundup of essential web development and design tools, updated 2026 Top-10 JavaScript lists, new libraries, AI tools, freebies, and industry news.
UX design
fromMedium
4 days ago

Every designer on my team ships the same quality now

Figma's integration of AI agents blurs the line between AI-generated and human-designed outputs, raising questions about the value of design work.
#css-corner-shape-property
UX design
fromCSS-Tricks
1 week ago

Generative UI Notes | CSS-Tricks

Generative UI Design uses AI to create personalized user interfaces tailored to individual needs in real-time.
Web development
fromSmashing Magazine
2 weeks 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.
Web design
fromPiccalilli
3 weeks 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
fromCSS-Tricks
2 weeks 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.
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
fromSitePoint Forums | Web Development & Design Community
2 weeks 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
fromCssence
1 month 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
3 weeks 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.
Web design
fromRaymondcamden
1 month ago

Dyanimically Adjusting Image Text for Contrast

Color Thief library now includes TypeScript definitions and new contrast detection features, including a textColor property that automatically suggests optimal text color for readability over images.
Web development
fromCSS-Tricks
3 weeks 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.
fromdbushell.com
1 month ago

Everything you never wanted to know about visually-hidden

Ana proposed the following: Is this enough in 2026? As an occasional purveyor of the visually-hidden class myself, the question wriggled its way into my brain. I felt compelled to investigate the whole ordeal. Spoiler: I do not have a satisfactory yes-or-no answer, but I do have a wall of text!
UX design
Web frameworks
fromRaymondcamden
1 month ago

Three Plug-N-Play CSS Libraries

Lightweight CSS libraries provide simple, attractive styling with minimal markup changes, ideal for demos, POCs, and quick clean interfaces.
JavaScript
fromCSS-Tricks
1 month 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.
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
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.
React
fromLogRocket Blog
2 months ago

Comparing the best React animation libraries for 2026 - LogRocket Blog

Choose animation libraries balancing developer experience, features, performance, and bundle size; consider CSS-first approaches for smaller bundles and production alternatives.
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
fromCSS-Tricks
1 month 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
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.
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

There is No Need to Trap Focus on a Dialog Element | CSS-Tricks

WCAG is not normatively stating focus must be trapped within a dialog. Rather, the normative WCAG spec makes zero mention of requirements for focus behavior in a dialog. The informative 2.4.3 focus order understanding doc does talk about limiting focus behavior within a dialog - but again, this is in the context of a scripted custom dialog and was written long before inert or <dialog> were widely available.
UX design
UX design
fromLogRocket Blog
2 months ago

How to animate SVG with CSS: Tutorial with examples - LogRocket Blog

Use lightweight SVGs with CSS and scroll-driven animations for performant, scalable web animations that enhance UX while avoiding bulky GIFs and videos.
UX design
fromFreebie Supply
2 months ago

CSS Calendar Ideas - Freebie Supply

User-friendly, well-designed web and app calendars integrated via front-end frameworks and CSS are essential for accurate date selection and strong UX across devices.
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
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
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
Web development
fromLogRocket Blog
2 months ago

CSS in 2026: The new features reshaping frontend development - LogRocket Blog

Modern CSS can replace JavaScript for many interactive features, enabling complex animations, customizable controls, and scroll interaction through new native CSS features.
Web development
fromSmashing Magazine
2 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.
#css-grid
fromprojectwallace.com
1 month 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
fromCSS-Tricks
1 month ago

Approximating contrast-color() With Other CSS Features | CSS-Tricks

There have been a few drafts of a specification function for this functionality, most recently, contrast-color() (formerly color-contrast()) in the CSS Color Module Level 5 draft. But with Safari and Firefox being the only browsers that have implemented it so far, the final version of this functionality is likely still a ways off. There has been a lot of functionality added to CSS in the meantime; enough that I wanted to see whether we could implement it in a cross-browser friendly way today. Here's what I have: color: oklch(from &lt;your color&gt; round(1.21 - L) 0 0);
Web development
Web development
fromCSS-Tricks
1 month 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.
Web development
fromCSS-Tricks
2 months ago

Playing With CodePen slideVars | CSS-Tricks

CodePen's slideVars auto-detects CSS variables and generates an editable UI with manual configuration for input types, ranges, units, and scope.
fromWebKit
2 months ago

When will CSS Grid Lanes arrive? How long until we can use it?

Anytime an exciting new web technology starts to land in browsers, developers want to know "when in the world am I going to be able to use this?" Currently, the finalized syntax for Grid Lanes is available in Safari Technology Preview. Edge, Chrome and Firefox have all made significant progress on their implementations, so it's going to arrive sooner than you think. Plus, you can start using it as soon as you want to with progressive enhancement.
Web development
Web development
fromInfoQ
2 months ago

HTML Invoker Commands Achieve Baseline Support Across All Major Browsers

HTML Invoker Commands API enables declarative button controls (commandfor and command) for popovers and dialogs, reducing reliance on JavaScript and improving initial interactivity.
[ Load more ]