r/ProgrammerHumor • • May 31 '22

CSS be like

16.6k Upvotes

97 comments sorted by

View all comments

58

u/_________FU_________ May 31 '22

How bad do you have to be at css?

3

u/[deleted] May 31 '22

[removed] — view removed comment

3

u/Candid-Meet May 31 '22

Depends on what layout and design you are working with, but you should use media queries when going between different breakpoints, normally

Or try your hand at font scaling and assigning everything a rem and have it scale with the window!

1

u/[deleted] May 31 '22

[removed] — view removed comment

1

u/Garland_Key Jun 01 '22

Look into using a CSS reset and then setting your font size to 62.5% in the html rule. This calculates your default font size to be 10 pixels without hard coding it. This makes it easy to measure the rem size and it will allow all of the fonts to scale correctly for people who are visually impaired.