css media query
snippet in html

css media query

user1661

/* 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) {    
}

css media query

user7810

CSS @media Rule

Example
Change the background color of the <body> element to "lightblue" when the browser window is 600px wide or less:

Syntax
@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;

    }
}

 

media querycss

user5139


@media only screen and (max-width: 600px) {
  body {

   
background-color: lightblue;
  }
}
 

css media query

user831


  @media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;

    }
}

 

css media query

user3649


@media not|only mediatype and (mediafeature  and|or|not 
  mediafeature) {
  CSS-Code;
} 

css media query

user6132


<link rel="stylesheet" media="screen and (min-width: 
  900px)" href="widescreen.css">
<link rel="stylesheet" media="screen and (max-width: 
  600px)" href="smallscreen.css">
....