Playing around with @media queries with Bootstrap 3. The following query structure has come up multiple times while looking at tutorials. However, I'm still having issues.
min-width: 1200px renders the font size (92px) and background (red) correctly, min-width: 992px renders the font size (48px) and background (green) correctly.
However, when I go lower than those two, min-width: 768px and max-width: 768px, their attributes are not applied to the elements. Appreciate any bit of help!
@media(max-width:767px){
.jumbotron h1 {
font-size: 12px;
}
body {
background: yellow;
}
}
@media(min-width:768px){
.jumbotron h1 {
font-size: 24px;
}
body {
background: blue;
}
}
@media(min-width:992px){
.jumbotron h1 {
font-size: 48px;
}
body {
background: green;
}
}
@media(min-width:1200px){
.jumbotron h1 {
font-size: 92px;
}
body {
background: red;
}
}
<body>
<p class="jumbotron">
<h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h1>
</p>
</body>