<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/css-unavoidable-bad-parts-ia9uwkcoo" -->

---
title: CSS: Unavoidable Bad Parts | daily.dev
description: A practical CSS guide aimed at non-web-developers who need to style a simple web page. Covers common pitfalls and gotchas including browser default styles and...
canonical: https://daily.dev/posts/css-unavoidable-bad-parts-ia9uwkcoo
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CSS: Unavoidable Bad Parts | daily.dev
og:description: A practical CSS guide aimed at non-web-developers who need to style a simple web page. Covers common pitfalls and gotchas including browser default styles and...
og:url: https://daily.dev/posts/css-unavoidable-bad-parts-ia9uwkcoo
og:image: https://api.daily.dev/og/posts/IA9uwKcOO.png
og:image:alt: CSS: Unavoidable Bad Parts
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CSS: Unavoidable Bad Parts

**[matklad](https://daily.dev/sources/matklad)** · 14 min read · 15 upvotes · 0 comments

## Summary

A practical CSS guide aimed at non-web-developers who need to style a simple web page. Covers common pitfalls and gotchas including browser default styles and the need for CSS resets, the unintuitive box-sizing default (and why border-box should be first in your reset), margin collapsing behavior, the lack of a universal layout algorithm, why flexbox is the modern solution for spatial arrangement, font-size quirks and the font-size-adjust property, line-height surprises when mixing fonts, word-break overflow issues on mobile, and why responsive design can often be avoided with simple max-width constraints. Also touches on CSS selectors vs. classless CSS approaches and the philosophical debate around styling web content at all.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://matklad.github.io/2026/06/04/css-unavoidable-bad-parts.html>

---

Tags: [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/css-unavoidable-bad-parts-ia9uwkcoo)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CSS: Unavoidable Bad Parts","url":"https://daily.dev/posts/css-unavoidable-bad-parts-ia9uwkcoo","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/css-unavoidable-bad-parts-ia9uwkcoo"},"datePublished":"2026-06-09T11:27:20.328Z","dateModified":"2026-06-09T11:27:42.711Z","description":"A practical CSS guide aimed at non-web-developers who need to style a simple web page. Covers common pitfalls and gotchas including browser default styles and...","image":"https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009","thumbnailUrl":"https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009","isAccessibleForFree":true,"articleSection":"matklad","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"matklad","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c34dbbf360354a179786e8a127718b12","url":"https://daily.dev/sources/matklad"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/css-unavoidable-bad-parts-ia9uwkcoo","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":15},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,html","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"matklad","item":"https://daily.dev/sources/matklad"},{"@type":"ListItem","position":3,"name":"CSS: Unavoidable Bad Parts"}]}
```

