How to make fluid layout in css using em?

Does emthe css block use to solve the problem of the difference in monitor resolution (800x600 vs 1024x768)?

+3
source share
2 answers

Yes, emsets the size of the css target relative to the precalculated em blockparent element. See wikipedia for more information on what Em is .

Basically, as the resolution increases, the size of Em is calculated. The Em block size is a function of the user's permission and preferences (font size), so you get the best of both worlds.

That's why the W3C suggests using Em for liquid displays.

+2

" " , , . Em - , , ( , 1 em 16 pt ) .

0

Source: https://habr.com/ru/post/1730970/


All Articles