560 blogs tracked7,114 posts indexed

CSS

We track 41 posts about CSS from 18 engineering blogs. Most active: Amit Merchant, SitePoint, David Walsh. Latest post: Nov 17, 2026.

Raw tag behind this topic:css

Companies writing about CSS

Recent posts

  • Giving AI Agents a Better Way to Debug CSS (opens on the source site)

    Freek Van der Herten ·

    Amit Merchant shows how to connect Chrome DevTools MCP to Codex and use its get_css_styles tool to inspect matched CSS rules and overridden declarations in the browser. This lets agents diagnose cascade and specificity issues using the styles actually applied to an element instead of guessing from source files. Read more

  • Giving AI Agents a Better Way to Debug CSS (opens on the source site)

    Amit Merchant ·

    Have you ever written a CSS rule, only to find out that it doesn’t seem to have any effect on the element you’re trying to style? You inspect the stylesheet, find the declaration, and everything looks perfectly fine. But the browser has other plans. This usually happens because of how the CSS cascade works. A declaration might be overridden by another rule, lose because of specificity, or be affected by things like cascade layers, media queries, or inheritance. And figuring out which rule is actually taking effect can sometimes be a bit of a detective job. Now, imagine being able to ask an AI…

  • Progressive Enhancement in Web Forms: Building Reliable Experiences with HTML, CSS, and JavaScript (opens on the source site)

    SitePoint ·

    null Continue reading Progressive Enhancement in Web Forms: Building Reliable Experiences with HTML, CSS, and JavaScript on SitePoint.

  • Responsive Typography With Modern CSS: Create Readable Interfaces Without Excessive Media Queries (opens on the source site)

    SitePoint ·

    null Continue reading Responsive Typography With Modern CSS: Create Readable Interfaces Without Excessive Media Queries on SitePoint.

  • Dark Mode CSS Variables: Build a Modern Theme with light-dark() (opens on the source site)

    SitePoint ·

    Build a no-flash dark mode toggle with plain CSS and JS. Use color-scheme, light-dark() and CSS variables, persist the choice in localStorage, and add a fallback. Continue reading Dark Mode CSS Variables: Build a Modern Theme with light-dark() on SitePoint.

  • Building Better Web Forms: Practical HTML, CSS, and JavaScript Techniques for Modern Websites (opens on the source site)

    SitePoint ·

    null Continue reading Building Better Web Forms: Practical HTML, CSS, and JavaScript Techniques for Modern Websites on SitePoint.

  • Tailwind CSS v4 Dynamic Themes Using Semantic CSS Tokens (opens on the source site)

    SitePoint ·

    Combine multiple color themes and dark modes in Tailwind CSS v4 using @theme inline and CSS custom properties, enabling utilities like bg-primary to adapt at runtime without dark: variants. Continue reading Tailwind CSS v4 Dynamic Themes Using Semantic CSS Tokens on SitePoint.

  • 7 Game-Changing Web UI Features You Can Start Using Today (opens on the source site)

    Amit Merchant ·

    I was watching this video from the Google IO on all the new web UI features that are coming to the web platform and I was blown away by how many of these features are already available in modern browsers. In this article, I want to highlight 7 of these features that I think are game-changing and that you can start using today (of course, in some of the modern browsers). CSS Text Box CSS Scrollspy Contrast Color The hidey bar using @scroll-state query Gap Decorations The light-dark() function The linear() function CSS Text Box A new property called text-box is coming to the web platforms that…

  • Improving site performance by shipping more CSS (opens on the source site)

    GitHub Old ·

    A look at how a design system shipped major changes without breaking the world. The post Improving site performance by shipping more CSS appeared first on The GitHub Blog.

  • Quiz: HTML and CSS Foundations for Python Developers (opens on the source site)

    Real Python ·

    Test your understanding of HTML and CSS basics for Python developers. Structure a page, link files, and style your site with CSS.

  • Tailwind CSS v4 Migration: Decouple Vite and PostCSS Pipelines (opens on the source site)

    SitePoint ·

    Migrate your web application to Tailwind CSS v4 by decoupling Vite and PostCSS pipelines into native CSS toolchains. Continue reading Tailwind CSS v4 Migration: Decouple Vite and PostCSS Pipelines on SitePoint.

  • CSS Custom Highlight Api: JavaScript Implementation Notes (opens on the source site)

    SitePoint ·

    Learn how to build high-performance syntax highlighting without wrapper DOM elements using the CSS Custom Highlight API JavaScript interfaces and Range objects. Continue reading CSS Custom Highlight Api: JavaScript Implementation Notes on SitePoint.

  • 5 best practices for preventing chaos in Tailwind CSS (opens on the source site)

    Evil Martians ·

    Tailwind CSS has become a very popular CSS framework, and it can speed up development. But using it without proper caution can add mayhem to your code. Learn best practices to avoid getting swept away!

  • Moving away from Tailwind, and learning to structure my CSS (opens on the source site)

    Julia Evans ·

    Hello! 8 years ago, I wrote excitedly about discovering Tailwind. At that time I really had no idea how to structure my CSS code and given the choice between a pile of complete chaos and Tailwind, I was really happy to choose Tailwind. It helped me make a lot of tiny sites! I spent the last week or so migrating a couple of sites away from Tailwind and towards more semantic HTML + vanilla CSS, and it was SO fun and SO interesting, so here are some things I learned! As usual I’m not a full-time frontend developer and so all of my CSS learning has happened in fits and starts over many years. it…

  • Links to CSS colour palettes (opens on the source site)

    Julia Evans ·

    A while back I decided to stop using Tailwind for new projects and to just write vanilla CSS instead. But one thing I missed about Tailwind was the colour palette (here as CSS). If I wanted a light blue I could just use blue-100 and if I didn’t like it maybe try blue-200 or blue-50. I’m not very good with colours so it makes a big difference to me to have a reasonable colour palette that somebody who is better at colour than me has thought about. But I’m also a little tired of those Tailwind colours, so I asked on Mastodon today what other colour palettes were out there. And then a friend…

  • One CSS Property That Makes Numbers Look Instantly Better (opens on the source site)

    Amit Merchant ·

    When you’re working with fonts, especially for displaying numbers, there’s something called proportional spacing that can make a huge difference in how your numbers look when they’re animated.

  • OLX Masterclass Frontend 2026 (opens on the source site)

    OLX ·

    The always-evolving challenges of OLX create a rich environment for innovation, experimentation, and knowledge sharing. In our 2026 Frontend Masterclass, we have three sessions that will shed light on our current development flow.Join us on March 3rd, 2026, from 6:00 pm to 9:00 pm at our OLX Offices in Poznań!Do you want to join us and know what’s trending in the latest frontend technology? Check the event information and join here!Can’t join it in person? Sign in to this form to receive the online recording of the session!Our AgendaWith a broad schedule, our speakers will deliver a mix of…

  • SVG Filters are just amazing! (opens on the source site)

    Amit Merchant ·

    So, lately, I have been exploring Haley Park’s website and it’s pretty cute and well designed. What caught my attention, though, was this water ripple effect on one of the text snippets.

  • One CSS Trick to Eliminate Scrollbar Layout Shifts (opens on the source site)

    Amit Merchant ·

    When a webpage’s content exceeds the viewport height, browsers typically introduce a vertical scrollbar. This can lead to layout shifts, especially when navigating between pages or toggling content visibility, as the presence or absence of the scrollbar alters the available width for content.

  • CSS only counter component (opens on the source site)

    Stanko Tadić ·

    Before we start, here is a demo of the counter (you can also check it out on CodePen): 12345678910-+ This idea started with a space invaders generator I recently made. If you look at the randomize button, you'll notice the number on the dice changes from five to three when you hover over it. A friend then said, "It would be really cool if you showed a different number every time you hover." That got me thinking, could I make this using CSS only?It's trivial to do in a few lines of JavaScript, which I'll probably do at some point. Before diving deeper, I decided to simplify the problem by…

  • Creating a scroll-spy with 2 lines of CSS (opens on the source site)

    Una Kravets ·

    scroll-target-group is a new CSS feature that lets you create scroll-spy table of contents with basically 2 lines of CSS.

  • CSS-only glitch effect (opens on the source site)

    Stanko Tadić ·

    Let me show you how I created a CSS-only image glitch effect. I was working on the robot poet and wanted my robotic bard to glitch - because it felt fitting given the quality of poetry it generates. Here's the final result: The effect involves quite a bit of HTML and CSS but no JavaScript. I did use JavaScript to generate the HTML and CSS, but it is not used in the final version. To be clear, there's nothing wrong with using JavaScript for this kind of thing. I just saw it as a fun challenge to make a pure CSS version. The idea # In the words of Daft Punk: Slice It Move It Hue-Rotate It We'll…

  • Transparent borders for element states (opens on the source site)

    Capgemini ·

    It’s quite a common design requirement to have a border on some states of an element but not others. For example a set of tabs where the currently active tab is highlighted with a top border, or a button where a border is added on hover. The problem is that if you add a border to an element, that changes its size, so if you add a border on one state of a component, then the size will change when the state changes, as you can see from these examples: One simple and elegant solution is to use a transparent border on the other versions of that element, and only change the border colour when the…

  • CSS fix to prevent orphan icons dropping to a new line (opens on the source site)

    Stanko Tadić ·

    When an HTML element becomes too narrow, its content starts to wrap into multiple lines. This is intended behavior and works well in many cases. However, for short text, it doesn't look great when the last word or icon drops to the next line, becoming an orphan. For example, you might see something like this: Click here for more info It doesn't look great when the icon is left alone on its own row. Luckily, there's a simple CSS solution. Solution # Only thing we need to add is a single line of CSS: text-wrap: balance; This property tells the browser to wrap the text in a way that best…

  • Spring Cleaning for z-indexes (opens on the source site)

    JobTeaser ·

    Managing z-index is a classic challenge for front-end developers. As a project grows, display conflicts and bugs related to z-index can quickly turn into serious headaches.I recently took some time to clean up the z-indexes in one of our projects.In this article, I’ll share the approach I used for this cleanup (while also laying the foundation for keeping things manageable in the long run).1. Analyzing the existing z-indexesThe first step was to perform a thorough audit of all the z-index declarations in the project. This gave me an overview of how many z-indexes we had and what values were…

  • Building Custom Email Templates with HTML and CSS in Python (opens on the source site)

    Stack Abuse ·

    An HTML email utilizes HTML code for presentation. Its design is heavy and looks like a modern web page, rich with visual elements like images, videos, etc., to emphasize different parts of an email's content. Building email templates tailored to your brand is useful for various email marketing purposes such

  • Case Insensitive CSS Attribute Selector (opens on the source site)

    David Walsh ·

    CSS selectors never cease to amaze me in how powerful they can be in matching complex patterns. Most of that flexibility is in parent/child/sibling relationships, very seldomly in value matching. Consider my surprise when I learned that CSS allows matching attribute values regardless off case! Adding a {space}i to the attribute selector brackets will make the attribute value search case insensitive: /* case sensitive, only matches "example" */ [class=example] { background: pink; } /* case insensitive, matches "example", "eXampLe", etc. */ [class=example i] { background: lightblue; } The use…

  • HTML popover Attribute (opens on the source site)

    David Walsh ·

    Modals have been an important part of websites for two decades. Stacking contents and using fetch to accomplish tasks are a great way to improve UX on both desktop and mobile. Unfortunately most developers don’t know that the HTML and JavaScript specs have implemented a native modal system via the popover attribute — let’s check it out! The HTML Creating a native HTML modal consists of using the popovertarget attribute as the trigger and the popover attribute, paired with an id, to identify the content element: <!-- "popovertarget" attribute will map to "id" of popover contents --> <button…

  • How to Override width and height HTML attributes with CSS (opens on the source site)

    David Walsh ·

    One of the HTML elements that frequently comes into collision with CSS is the img element. As we learned in Request Metrics’ Fixing Cumulative Layout Shift Problems on DavidWalshBlog article, providing image dimensions within the image tag will help to improve your website’s score. But in a world where responsive design is king, we need CSS and HTML to work together. Most responsive design style adjustments are done via max-width values, but when you provide a height value to your image, you can get a distorted image. The goal should always be a display images in relative dimensions. So how…

  • AutoGrow Textareas with CSS (opens on the source site)

    David Walsh ·

    As the demands of the web change and developers experiment with different user experiences, the need for more native language improvements expands. Our presentation layer, CSS, has done incredibly well in improving capabilities, even if sometimes too slow. The need for native support for automatically expanding textarea elements has been long known…and it’s finally here! To allow textarea elements to grow vertically and horizontally, add the field-sizing property with a value of content: textarea { field-sizing: content; // default is `fixed` } The default value for field-sizing is fixed,…

Related topics

This page is generated automatically from the engineering blogs we follow. Every post links to its source, where it was published. See all sources.

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.