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

Intro Section With Dropdown Navigation Main

@AliMahmoud21

Desktop design screenshot for the Intro section with dropdown navigation coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Ok, I'm fed up with the responsive design...

Community feedback

@AGutierrezR

Posted

Hello there 👋. Good job on completing the challenge!

I have some suggestions about your code that might interest you.

  • To avoid content being fluid horizontally, you could use a max-width: 1150px and margin-inline: auto on the main .hero .hero-container .content selector.
  • You could do the same for the main nav .nav-container selector, but in this case, it is wider than the content.
  • You have two selectors with the same target with the same properties (main .hero .hero-container .content in header.scss and .hero .hero-container .content in hero.scss) you could refactor that and remove one of them.
  • To avoid elements from stretching vertically (like in the main .hero .hero-container .content .left-content .sponsores selector) you should add align-items: center, this will keep elements from stretching vertically and will center them vertically

I hope you find this helpful 😁. Most importantly, your submitted solution is fantastic!

Happy coding!

Marked as helpful

1

@AliMahmoud21

Posted

Oh man, thanks I agree with you, especially the first point and the third one I don't know why I insisted on using an extra selector and not using "max-width". I'll modify them as soon as possible and I'll try to fix the Responsive Design as well.

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