hey guys I don't quite get multiple media queries. here is what I mean
html code:
<div class="container">
<div class="jumbotron">
<h1 id ="jumbo_text">{% block jumbo_text1 %} {% endblock %}</h1>
<h2 id ="jumbo_text2">{% block jumbo_text2 %} {% endblock %}</h2>
</div>
</div>
css code:
@media only screen and (min-width: 200px) and (max-width: 767px) {
.jumbotron {
display: none;
}
}
@media only screen and (max-width: 768px){
.jumbotron {
height: 200px !important;
width:300px;
background-image: url("../../img/jumbo_pics/bbj_class.jpg");
}
}
basically the second media query works but the first one doesn't. why?
in pseudocode:
devices that are at minium 200px and maximum 360px dont show jumbotron
devices above 360px but below 768px show jumbotron with height of 200px and width of 300px
Im really confused between max-width
and min-width
too
does max-width
mean a device whose width is at max n
and therefore all sizes below n
the style applies?
and does min-width
mean a device whose width at minimum is n
and all the sizes above n
the style applies?
am I getting that right?
to wrap this up:
- how to do multiple media queries with different ranges?
- is my understanding of
min-width
andmax-width
correct?