# CSS Resets

CSS resets are stylesheets containing CSS rules that alter or remove browser user-agent defaults to provide a consistent starting point for web styling.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## 5 CSS Values for Easier Text Styling

DevFeed: [5 CSS Values for Easier Text Styling](<https://devfeed.tech/articles/5-css-values-for-easier-text-styling-143176.md>)

Original publisher: [Read original article](<https://blog.master.dev/5-css-values-for-easier-text-styling/>)

Author: Preethi Sam

Published: 2026-11-18T20:33:17Z

Content type: article

Language: en

Sources: [Master.dev Blog RSS Feed](<https://devfeed.tech/sources/master-dev-blog-rss-feed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [CSS Resets](<https://devfeed.tech/topics/css-reset.md>)

Tags: [accentcolor](<https://devfeed.tech/tags/accentcolor.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [ch](<https://devfeed.tech/tags/ch.md>), [css](<https://devfeed.tech/tags/css.md>), [css-values](<https://devfeed.tech/tags/css-values.md>), [layer](<https://devfeed.tech/tags/layer.md>), [relative-color-syntax](<https://devfeed.tech/tags/relative-color-syntax.md>), [revert-layer](<https://devfeed.tech/tags/revert-layer.md>), [styling](<https://devfeed.tech/tags/styling.md>), [text](<https://devfeed.tech/tags/text.md>), [typography](<https://devfeed.tech/tags/typography.md>), [unset](<https://devfeed.tech/tags/unset.md>), [value](<https://devfeed.tech/tags/value.md>)

### AI overview

The article presents five CSS values that simplify text styling: `unset` lets a property inherit from an ancestor or fall back to its initial value; `AccentColor` offers a simple system-like blue, though browsers generally use a standard blue for privacy and may expose the OS accent when fingerprinting protection is disabled; `ch` measures lengths by the width of the zero glyph, useful for character-sized inputs and text spacing; `from` lets relative color functions derive a color from a base in any supported notation; and `revert-layer` drops a higher layer's value to reveal a lower layer's value, such as author defaults. Examples show these values for headings, inputs, spacing, text effects, and layered styles.

### Source excerpt

Sometimes picking the right value matters more than picking the right property. Here are five CSS values (unset, AccentColor, ch, from, and revert-layer) that take a lot of the work out of styling text.

## CSS Reset: A Modern Reset, Explained Line by Line

DevFeed: [CSS Reset: A Modern Reset, Explained Line by Line](<https://devfeed.tech/articles/css-reset-a-modern-reset-explained-line-by-line-140892.md>)

Original publisher: [Read original article](<https://markodenic.com/css-reset/>)

Author: Marko

Published: 2026-11-18T17:00:00Z

Content type: tutorial

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [CSS Resets](<https://devfeed.tech/topics/css-reset.md>), [CSS](<https://devfeed.tech/topics/css.md>)

Tags: [box](<https://devfeed.tech/tags/box.md>), [cascade](<https://devfeed.tech/tags/cascade.md>), [css](<https://devfeed.tech/tags/css.md>), [fonts](<https://devfeed.tech/tags/fonts.md>), [form](<https://devfeed.tech/tags/form.md>), [images](<https://devfeed.tech/tags/images.md>), [layer](<https://devfeed.tech/tags/layer.md>), [margins](<https://devfeed.tech/tags/margins.md>), [modern](<https://devfeed.tech/tags/modern.md>), [motion](<https://devfeed.tech/tags/motion.md>), [reset](<https://devfeed.tech/tags/reset.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

The excerpt presents a compact CSS reset that targets common layout and consistency problems while retaining browser defaults such as heading sizes and ordinary list bullets. It applies border-box sizing, removes selected margins, sets readable line heights, prevents text and media overflow, makes form controls inherit page fonts, and reduces motion for users who request it. It limits bullet removal to lists marked role="list" to address Safari VoiceOver behavior, and notes that block-level media may need inline styling for icons. Placing the reset in a cascade layer lets unlayered author styles override it regardless of specificity; browsers without layer support ignore the block and use browser defaults. The article contrasts this approach with classic resets, which remove nearly all defaults, and normalize.css, which chiefly aims for cross-browser consistency.

### Source excerpt

A modern CSS reset you can copy, with every rule explained: box-sizing, margins, images, form fonts, reduced motion, and why it lives in a cascade layer.

## How to Style an hr (Horizontal Rule) in CSS

DevFeed: [How to Style an hr (Horizontal Rule) in CSS](<https://devfeed.tech/articles/how-to-style-an-hr-horizontal-rule-in-css-121396.md>)

Original publisher: [Read original article](<https://markodenic.com/css-hr/>)

Author: Marko

Published: 2026-11-06T09:00:00Z

Content type: tutorial

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [CSS Resets](<https://devfeed.tech/topics/css-reset.md>)

Tags: [border](<https://devfeed.tech/tags/border.md>), [color](<https://devfeed.tech/tags/color.md>), [css](<https://devfeed.tech/tags/css.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [hr](<https://devfeed.tech/tags/hr.md>), [html](<https://devfeed.tech/tags/html.md>), [screen-readers](<https://devfeed.tech/tags/screen-readers.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [style](<https://devfeed.tech/tags/style.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

The excerpt's key fix is to remove the browser's default border before styling <hr>; setting color or background alone may not change its appearance consistently. From there, use a border for line color and thickness, or a height and background for rounded, gradient, or custom dashed lines. A repeating-linear-gradient controls dash and gap lengths, while width plus auto side margins creates a shorter centered rule. For text between two lines, the excerpt recommends a flex container with pseudo-elements because <hr> cannot contain text; an ornament can instead be added to a real <hr> with ::after. Semantically, <hr> marks a thematic break announced as a separator by screen readers. Use a CSS border for purely decorative dividers.

### Source excerpt

Style the HTML hr element with CSS: change its color and thickness, make dashed, dotted and gradient lines, add text or an icon in the middle, and use it correctly as a thematic break.

## Taming Typography: Building a Modern CSS Reset

DevFeed: [Taming Typography: Building a Modern CSS Reset](<https://devfeed.tech/articles/taming-typography-building-a-modern-css-reset-121134.md>)

Original publisher: [Read original article](<https://css-tricks.com/taming-typography-modern-css-reset/>)

Author: Stu Robson

Published: 2026-11-05T14:55:31Z

Content type: article

Language: en

Sources: [CSS-Tricks](<https://devfeed.tech/sources/css-tricks.md>)

Topics: [CSS Resets](<https://devfeed.tech/topics/css-reset.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Variable Fonts](<https://devfeed.tech/topics/variable-fonts.md>), [Font](<https://devfeed.tech/topics/font.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [css](<https://devfeed.tech/tags/css.md>), [fluid](<https://devfeed.tech/tags/fluid.md>), [fonts](<https://devfeed.tech/tags/fonts.md>), [reset](<https://devfeed.tech/tags/reset.md>), [resource](<https://devfeed.tech/tags/resource.md>), [typography](<https://devfeed.tech/tags/typography.md>)

### AI overview

The excerpt presents tidy-typography.css as a modular reset that uses CSS features to handle type sizing, rhythm, wrapping, hyphenation and font details. Container query units make fluid type respond to its container; balanced wrapping suits short headlines, while pretty wrapping avoids stranded words in paragraphs and stable wrapping prevents edits from reshuffling content. The excerpt also describes trimming line-box half-leading, tuning hyphen breaks, locale-aware quotes, font-aware underlines, numeric styles and variable-font settings. It cautions that support is uneven, some features remain experimental, and the unenhanced typography must remain acceptable when browsers ignore unsupported declarations. Choose rules to suit the content, font and browser support needs; the full reset is not necessarily appropriate as a universal baseline.

### Source excerpt

Stu created tidy-typography.css: a style reset for taming typography with modern CSS features for everything from fluid typography and vertical rhythm, to hyphens and variable fonts. Taming Typography: Building a Modern CSS Reset originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.

## How to Organize CSS with Cascade Layers in Large Web Projects

DevFeed: [How to Organize CSS with Cascade Layers in Large Web Projects](<https://devfeed.tech/articles/how-to-organize-css-with-cascade-layers-in-large-web-projects-109945.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/how-to-organize-css-with-cascade-layers-in-large-web-projects/>)

Author: Jhon-Harry

Published: 2026-10-28T05:21:23Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [CSS Resets](<https://devfeed.tech/topics/css-reset.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [cascade](<https://devfeed.tech/tags/cascade.md>), [css](<https://devfeed.tech/tags/css.md>), [layers](<https://devfeed.tech/tags/layers.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

CSS cascade layers let teams set style priority by responsibility, reducing the need to raise selector specificity in large stylesheets. Declare an intentional order, such as reset, vendor, components, utilities, then keep related styles in their layers; for normal declarations, later layers outrank earlier ones even when selectors are less specific. Important declarations reverse layer priority, while unlayered normal author styles outrank layered normal styles, so existing CSS and third-party rules need review. The excerpt recommends migrating one group at a time, checking rendered components and responsive layouts, and using browser developer tools or visual regression tests to catch changes. Layer structures are project-specific, and layers do not eliminate the need to understand specificity.

### Source excerpt

null Continue reading How to Organize CSS with Cascade Layers in Large Web Projects on SitePoint.

## Moving away from Tailwind, and learning to structure my CSS

DevFeed: [Moving away from Tailwind, and learning to structure my CSS](<https://devfeed.tech/articles/moving-away-from-tailwind-and-learning-to-structure-my-css-21129.md>)

Original publisher: [Read original article](<https://jvns.ca/blog/2026/05/15/moving-away-from-tailwind--and-learning-to-structure-my-css-/>)

Author: Julia Evans

Published: 2026-05-15T00:00:00Z

Content type: article

Language: en

Sources: [Julia Evans](<https://devfeed.tech/sources/julia-evans.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Tailwind CSS](<https://devfeed.tech/topics/tailwind.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [CSS Resets](<https://devfeed.tech/topics/css-reset.md>), [Code](<https://devfeed.tech/topics/code.md>), [Responsive Design](<https://devfeed.tech/topics/responsive-design.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [css](<https://devfeed.tech/tags/css.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [responsive-design](<https://devfeed.tech/tags/responsive-design.md>), [tailwind](<https://devfeed.tech/tags/tailwind.md>)

### AI overview

The author describes migrating several sites from Tailwind to semantic HTML and vanilla CSS, using lessons from Tailwind to create clearer systems for structuring CSS. The article discusses resets, components, colors, font sizes, utility classes, spacing, responsive design, and the build system.

### Source excerpt

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 turns out Tailwind taught me a lot When I started thinking about structuring CSS, I was intimidated at first: I'm not very good at structuring my CSS! But then I started reading blog posts talking about how to structure CSS (like A whole cascade of layers or How I write CSS in 2024) and I realized a couple of things: Every CSS code base has a bunch of different things going on (layouts! fonts! colours! common components!) It's extremely useful to have systems or guidelines to manage each of those things, otherwise things descend into chaos Tailwind has systems for some of these, and I already know those systems! Maybe I can imitate the systems I like! For example, Tailwind has: a reset stylesheet a colour palette a font scale the systems I'm going to talk about I'm going to talk about a few aspects of my CSS codebase and my thoughts so far what kind of rules I want to impose on the codebase for each one. Some of them are copied from Tailwind and some aren't. reset components colours font sizes utility classes the base spacing responsive design the build system 1. reset I just copied Tailwind's "preflight styles" by going into tailwind.css and copying the first 200 lines or so. I noticed that I've developed a relationship with Tailwind's CSS reset over time, for example Tailwind sets box-sizing: border-box on every element (which means that an element's width includes its padding

## A Modern CSS Reset

DevFeed: [A Modern CSS Reset](<https://devfeed.tech/articles/a-modern-css-reset-45194.md>)

Original publisher: [Read original article](<https://www.joshwcomeau.com/css/custom-css-reset/>)

Author: Josh W. Comeau

Published: 2021-11-23T12:00:00Z

Content type: tutorial

Language: en

Sources: [Josh Comeau's blog](<https://devfeed.tech/sources/josh-comeau-s-blog.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [CSS Resets](<https://devfeed.tech/topics/css-reset.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [authoring](<https://devfeed.tech/tags/authoring.md>), [css](<https://devfeed.tech/tags/css.md>), [experience](<https://devfeed.tech/tags/experience.md>), [global](<https://devfeed.tech/tags/global.md>), [modern](<https://devfeed.tech/tags/modern.md>), [project](<https://devfeed.tech/tags/project.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A tutorial presents a custom CSS reset for use as a baseline across projects. It explains how the reset improves CSS authoring and user experience, including the box-sizing model and how border-box sizing prevents overflow.

### Source excerpt

I have a set of baseline CSS styles that come with me from project to project. In the past, I'd use a typical CSS reset, but times have changed, and I believe I have a better set of global styles!

## Continue Normalising Your CSS

DevFeed: [Continue Normalising Your CSS](<https://devfeed.tech/articles/continue-normalising-your-css-45604.md>)

Original publisher: [Read original article](<https://csswizardry.com/2016/10/continue-normalising-your-css/>)

Author: Harry Roberts

Published: 2016-10-19T12:40:58Z

Content type: opinion

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [CSS Resets](<https://devfeed.tech/topics/css-reset.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [bug](<https://devfeed.tech/tags/bug.md>), [css](<https://devfeed.tech/tags/css.md>), [developer](<https://devfeed.tech/tags/developer.md>), [development](<https://devfeed.tech/tags/development.md>), [layout](<https://devfeed.tech/tags/layout.md>)

### AI overview

Harry Roberts argues that Normalize.css should continue to be used as a consistent, bug-free baseline for web development. He distinguishes normalization from forcing identical visual rendering across browsers and emphasizes its value for developers while preserving useful browser defaults.

### Source excerpt

Why we should still be using Normalize.css

## Large Scale CSS Refactoring at trivago

DevFeed: [Large Scale CSS Refactoring at trivago](<https://devfeed.tech/articles/large-scale-css-refactoring-at-trivago-27940.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2016-02-02-large-scale-css-refactoring-at-trivago/>)

Author: Christoph Reinartz Follow

Published: 2016-02-02T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [CSS Framework](<https://devfeed.tech/topics/css-framework.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Tech Debt](<https://devfeed.tech/topics/tech-debt.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Responsive Design](<https://devfeed.tech/topics/responsive-design.md>), [Media Queries](<https://devfeed.tech/topics/media-queries.md>), [CSS Resets](<https://devfeed.tech/topics/css-reset.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [design-system](<https://devfeed.tech/tags/design-system.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [large](<https://devfeed.tech/tags/large.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>)

### AI overview

Project Ironman replaced trivago's aging hotel search CSS foundation while feature development continued. The team established a design system with a pattern library, atomic design, BEM and ITCSS, then migrated the core UI in three parts: rewrote desktop-first max-width media queries for a mobile-first min-width approach and inlined them; replaced reset.css with normalize.css and changed the default box model from content-box to border-box; and replaced cluttered image sprites with embedded SVG icons and PNG fallbacks built with grunticon. A dedicated engineering, QA and design team used a Kanban board, stand-ups and company updates to coordinate the work. After three weeks and over 50,000 lines of SCSS refactoring, they released an A/B test, observed positive mobile results, and accepted the migration after four weeks. Reported outcomes included over 10% smaller CSS assets, over 20% fewer SCSS lines, 47 sprites removed, and more than six image-sprite HTTP requests saved on average.

### Source excerpt

While our company and our application were constantly growing, we often ran into some consistency issues between code and design. Because we didn't have a design/frontend system and development guidelines to follow, our UI became cluttered and unsustainable.

## Rendering as NULL in XHP

DevFeed: [Rendering as NULL in XHP](<https://devfeed.tech/articles/rendering-as-null-in-xhp-22040.md>)

Original publisher: [Read original article](<https://codebeforethehorse.tumblr.com/post/80212486413>)

Author: Codebeforethehorse

Published: 2014-03-21T00:17:00Z

Content type: article

Language: en

Sources: [Stefan Parker](<https://devfeed.tech/sources/stefan-parker.md>)

Topics: [render](<https://devfeed.tech/topics/render.md>), [Null-Safety](<https://devfeed.tech/topics/null-safety.md>), [CSS Resets](<https://devfeed.tech/topics/css-reset.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [children](<https://devfeed.tech/tags/children.md>), [class](<https://devfeed.tech/tags/class.md>), [component](<https://devfeed.tech/tags/component.md>), [css](<https://devfeed.tech/tags/css.md>), [display](<https://devfeed.tech/tags/display.md>), [element](<https://devfeed.tech/tags/element.md>), [errors](<https://devfeed.tech/tags/errors.md>), [facebook](<https://devfeed.tech/tags/facebook.md>), [links](<https://devfeed.tech/tags/links.md>), [null](<https://devfeed.tech/tags/null.md>), [rendering](<https://devfeed.tech/tags/rendering.md>), [xhp](<https://devfeed.tech/tags/xhp.md>)

### AI overview

The excerpt weighs XHP elements that render empty fragments against alternatives for conditionally absent content. In its edit-link example, hiding the permission check inside `render()` leaves the parent unable to manage a separator; moving the check to a factory method can expose an unsafe path if callers instantiate the link directly. It presents two ways to keep the check encapsulated: wrap separators in elements and hide misplaced ones with CSS (with limits for IE6/basic mobile support and extra DOM nodes), or use an `:x:primitive` that renders after its children and inserts separators only between rendered children. A `willRenderNULL()` method is another option when outside code needs to know whether content will render. The author says Facebook discourages empty rendering partly because engineers are traditionally urged not to extend `:x:primitive`, and because JavaScript may reference elements that do not render; the author favors keeping logic and security checks consolidated.

### Source excerpt

There are some at Facebook who have argued against returning null when rendering an XHP element. In fact, it's actually against Facebook's standards now. Personally, I prefer to structure my code to return null in XHP, but there definitely are pros and cons. I'll cover the situations in which you might want to return null and what the alternatives could be, and then you can decide for yourself. First, let me clarify that when I say returning null, I actually mean returning an empty <x:frag> element from your :x:element-extended class - basically meaning you don't want it to render into anything. So when would you return null from an XHP element? Well, often times it is when the element should only conditionally exist. Let's contrive a simple example. class :post:edit-link extends :x:element { attribute Post post @require; protected function render() { $post = $this->getAttribute('post'); if ($post->author != get_loggedin_user() && !user_is_admin()) { return <x:frag />; } return <a href={"/post/{$post->id}/edit"}>Edit</a>; } } class :blog:post extends :x:element { attribute Post post @required; protected function render() { $post = $this->getAttribute('post'); return <div class="post"> <div class="title">{$post->title}</div> {$post->content} <div class="links"> <post:permalink post={$post} /> &middot; <post:comment-link post={$post} /> &middot; <post:edit-link post={$post} /> </div> </div>; } } So in this scenario, we have <post:edit-link> which will conditionally return a link to edit the post if you are the author. However, if you are not the author you'll see a floating &middot; underneath each blog post. We cannot tell without rendering <post:edit-link> if it will return content or not, so there's no way to conditionally control the last &middot; from inside :blog:post::render(). This is the primary reason some people feel rendering null in XHP is bad practice. To remove the null rendering from <post:edit-link> we'll have to take that check and put it somewhere e

## Reset restarted

DevFeed: [Reset restarted](<https://devfeed.tech/articles/reset-restarted-45520.md>)

Original publisher: [Read original article](<https://csswizardry.com/2011/10/reset-restarted/>)

Author: Harry Roberts

Published: 2011-10-18T20:17:39Z

Content type: article

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [CSS Resets](<https://devfeed.tech/topics/css-reset.md>), [CSS](<https://devfeed.tech/topics/css.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [css](<https://devfeed.tech/tags/css.md>), [html](<https://devfeed.tech/tags/html.md>), [html5](<https://devfeed.tech/tags/html5.md>)

### AI overview

The article argues against blindly reusing large CSS resets and presents a slimmer reset based on sensible defaults and HTML element semantics. It discusses removing unnecessary rules, preserving list behavior, and adding defaults for text-level and HTML5 elements.

### Source excerpt

Reset restarted Written by Harry Roberts on CSS Wizardry. Everyone knows the trusty CSS reset; that oh-so-useful tool that saves us many a headache. We love it so much in fact that we tend to use it on every project-but therein lies the problem... When I discovered the CSS reset I almost cried with joy; the sheer amount of headaches, bug fixes-and thus time-it saved me was astounding. I vowed from that day on that I'd always use it, wherever I go.