Landing Page Question media

Hi there, im working on my landing page but im currently stuck on this one problem.

Im trying to create the media query for the header and for some reason, the nav links doesnt get centered on smaller screen size but the title logo does.

@media (max-width: 720px) {
  #header {
    display: flex;
    justify-content: center;

Any help please. THANKS!!! :smiley:

your navbar has position fixed

ohh. i thought media query is like an if/else statement like, " if max screen size is say 720px, override the previous CSS then use /apply this media instead ".

that’s my understanding about media queries… :sweat_smile:

it is, but only applies changes/additions to whatever is listed, it doesnt wipe out other previous style adjustments

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.