@Martin-K-Kamir
Posted
Hi, i really like your solution. If i could suggest you few things from my experience, what i would tweak a little.
-
Since you are using rems. Set to html tag in css font-size: 62.5%. So 1 rem is 10px. As default 1 rem is 16px. So setting it this way will help you calculate how much is 1 rem. For example 32.1rem is 321px :D
-
As @ToHX said set body (or make some container class) min-height: 100vh and center it with flexbox. So you can simplify your code also like @BenjaDotMin commented.
-
For the box-sizing: border-box dont use it on body tag but like this -> html box-sizing: border-box; ... and ... *, *:before, *:after { box-sizing: inherit }. It is better explained here -> https://css-tricks.com/box-sizing/
Marked as helpful
@catherineisonline
Posted
@Martin-K-Kamir Thanks for the feedback, means a lot.