<!-- 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
---

[matklad](https://daily.dev/sources/matklad)

[Read post](https://api.daily.dev/r/IA9uwKcOO)

# [CSS: Unavoidable Bad Parts](https://api.daily.dev/r/IA9uwKcOO "Go to post")

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

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.

[#css](/tags/css "Check all #css posts")[#html](/tags/html "Check all #html posts")

Jun 09•14m read time•From [matklad.github.io](https://api.daily.dev/r/IA9uwKcOO "matklad.github.io")

[![Post cover image](https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009)](https://api.daily.dev/r/IA9uwKcOO "Go to post")

30.7K Impressions15 Upvotes

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![matklad's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c34dbbf360354a179786e8a127718b12)](https://daily.dev/sources/matklad)

[matklad](https://daily.dev/sources/matklad "https://daily.dev/sources/matklad")

Matthias Noback's expertise in PHP and domain-driven design (DDD) offers readers insights into buil... Read more

33 Followers

•

474 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

15

```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"}]}
```

