consulta de medios
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}
Collared Lizard
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}
/* BOOSTRAP MEDIA BREAKPOINTS */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
.selector {
background-color:#f00;
}
}
/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}
/* For Mobile */
@media screen and (max-width: 540px) {
.view {
width: 400px;
}
}
/* For Tablets */
@media screen and (min-width: 540px) and (max-width: 780px) {
.view {
width: 600px;
}
}
@media print {
/* All your print styles go here */
#header, #footer, #nav { display: none !important; }
}
/* So me write a media query like this */
@media screen and (min-width:746px){
/* here we will add the stles we want
for the screen with min -width of 746 px*/
}
/* we can also use something like*/
@media print and (min-width:1024px){
}
/* Here print is for what we will see if we print whats on the screen*/
Mobile screen friendly using Media Query