Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive landing page using flexbox

Anthony Passlerβ€’ 100

@anthonyPassler

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


When I check on the browser the mobile version looks good, but when I send the ZEIT now link to my mobile phone its off-center - not sure why

Community feedback

P
Matt Studdertβ€’ 13,611

@mattstuddert

Posted

Nice work on this challenge, Anthony. The issue with your mobile layout is due to a couple of things:

  • You're setting width: 400px; on the header. So this is staying at 400px even if you're on mobile phone with a smaller screen size. One workaround would be to add max-width: 100%; to the element which would make sure it never grows to more than 100% of the browser window width.
  • Another issue is that you're not setting the box-sizing on all elements to be border-box. That means you're using the old W3C definition of the box model whereby padding and border values are added onto the width of an element. It's standard practice to set all elements on the page to be sized by their border-box. Here's a great article on CSS Tricks for more information on this.

Hopefully, that will help you resolve the issue on mobile. Keep up the great work and let me know if you have any questions πŸ™‚

0

Anthony Passlerβ€’ 100

@anthonyPassler

Posted

@mattstuddert thank you so much for the feedback - very kind :)

0
P
Matt Studdertβ€’ 13,611

@mattstuddert

Posted

@anthonyPassler you’re welcome!

0

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