Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Cannot read properties of null (reading 'code')
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Use calc for the first time for responsive text, logo. Tablet bp.

@InterplanetaryDragon


Design comparison


SolutionDesign

Solution retrospective


Experimented with the calc feature for text to limit media queries. It worked out very well. For example, h1 was set to:

font-size: calc(1.8rem + 1.3vw);

I set :root font-size to 10px, which made using rem a lot easier. 1rem was now 10px instead of 16px, which again limited calculation.

I found I was able to apply the calc formula to the logos too. I also used percentages a lot for padding and margins instead of fixed pixels, which helps limit media queries further.

I also made use of the 'order' attribute in flexbox for the first-time and percentage for the row after applying 'flex-flow: row wrap;'. It made the footer a breeze to layout and make responsive. Highly recommended for other newbies if you are not familiar.

I used grid for the top section (not needed but I wanted to practice). Flex for the middle section and the footer.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord