0
@media screen and (min-width:450px){
  .dark-blue{
    width: 50%;
  }
  #container2{
    width: 50%;
  }
}

When this media query triggers, the dark-blue div and the div whose id is container2 will not stay in a row. Specifically, a blank below the dark-blue div is the issue. All I want to know is how to make them symmetrical. More detail in my github.https://github.com/kmfb/udacityProjects/tree/master/model.

Jonny
  • 1,319
  • 1
  • 14
  • 26
stardusted
  • 38
  • 4

1 Answers1

0

I would try something like this:

@media screen and (min-width:450px){
  .dark-blue{
    width: 100%;
  }
  #container2{
    width: 100%;
  }
  #container2 div {
    width: 50%;
    display: inline;
  }
}
RLessard
  • 146
  • 6