Summary: People often over-engineer solutions, and it leads to them running into problems with their CSS. In this article, we’ll take a look at the least amount of CSS that you need to make a decent looking page.

The fun part of making a website is that if you write your HTML and nothing else, you have a responsive website.

Granted, if you have images they can cause some overflow issues.

So we can start things off by fixing that:

img {
max-width: 100%;
display: block;
}

It’s possible you have videos or SVGs that are also causing problems (less likely with SVGs though), so if you need, you can expand upon this a little bit.

img,
svg,
video {
max-width: 100%;
display: block;
}

Improving the typography

The first thing we can do is change the font family s…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help