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

@CreativeSam99

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


I encountered difficulty getting a mobile version of my navbar. I would appreciate it if anyone could share the technique that they used.

Community feedback

@AngwenyiOgata

Posted

Hello @CreativeSam99

Congratulations on finishing the challenge.

To make responsive designs for different screens sizes you will need to use Media Query Breakpoints such as

body{
    background-color: blue;
}

@media screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}

this will make the background of all screen sizes below 600px to light blue

Or if you could wish to use mobile-fast CSS you use

  body {
    background-color: orange;
  }

@media screen and (min-width: 600px) {
  body {
    background-color: red;
  }
}

This will change the background color to red if the device screen size is more than 600px.

Hope this will be helpful to you.

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