Css media - Forum

Forum Navigation
You need to log in to create posts and topics.

Css media

why,This css code does not work?

@media only screen and (max-width: 600px) {
div.Container1 {
display:none;
}
}

@asmat, it's because you are not using the appropiate CSS selectors.
Try this instead:

@media only screen and (max-width: 600px) {
  #Container1 {
    display:none;
  }
}

 

Open chat
1
Do you need more info?
Hi, do you have any doubt?