Closed codingbootcampseu closed 3 years ago
Pixel to REM
<html>
16px
px
Header Refacoring
<h1>
<p>
rem
em
Main Content
ch
max-width
Example Solution and Comparison
a bissl CSS Übung in der Früh schadet nicht
Pixel to REM
<html>
element16px
is the default font size but feel tree to try something elsepx
values within your CSS with rem valuesHeader Refacoring
<h1>
) and profession (<p>
) of the header in a generic html elementrem
based font size (it should be big)em
unit for the title and profession<h1>
) should have the same size as the parent element<p>
) should be 25% of the sizeMain Content
ch
unit to limit themax-width
of the main contentmax-width
to get a good reading experienceExample Solution and Comparison