@turanarican2022
Posted
First, congrats for completing the challenge. As per your questions;
- FlexBox is a good solution here as it is very suitable to use for component based layout,
- I used a .container div with a background-color of that faint blue to center the card in the viewport with a height of 100vh and width of 100vw and I used a .card div like you used a .wrapper div
- if you want to use rem units, make sure to set font-size: 62.5% in your root html element so that when you size something for 1.2rem for example it becomes 12px
Hope these help.
@Islandstone89
Posted
@turanarican2022 you should not change the font size to 62.5%
. This article by Grace Snow, one of the top contributors here on Frontend Mentors, explains why.