Search
 
SCRIPT & CODE EXAMPLE
 

CSS

media query

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

media query

/* Smartphones and larger (mobile-first) */

/* Tablet portrait and larger */
@media only screen and (min-width: 600px) {}
/* Tablet landscape and larger */
@media only screen and (min-width: 900px) {}
/* Desktop and larger */
@media only screen and (min-width: 1200px) {}
/* Big desktop (4k) */
@media only screen and (min-width: 2500px) {}
Comment

media query

@media only screen and (min-device-width: 900px) and (max-device-width: 1200px) {
  /* insert styles here */
}
Comment

media query new syntax

@media (max-width: 30em) {
  // Styles for viewports with a width of 30em or less.
}
Comment

media query new syntax

@media (min-width: 400px) and (max-width: 600px) {
  // Styles for viewports between 400px and 600px.
}
Comment

media query new syntax

@media (400px <= width <= 600px )  {
  // Styles for viewports between 400px and 600px.
}
Comment

media query new syntax

@media (min-width: 400px) {
  // Styles for viewports with a width of 400 pixels or greater.
}
Comment

media query new syntax

@media (width >= 400px) {
  // Styles for viewports with a width of 400 pixels or greater.
}
Comment

media query new syntax

@media (width <= 30em) {
  // Styles for viewports with a width of 30em or less.
}
Comment

where to put media query

media query common breakpoints
Comment

PREVIOUS NEXT
Code Example
Css :: why sass 
Css :: pill shape css 
Css :: css select first word 
Css :: blob without svg 
Css :: Sidebar-Content layout 
Css :: horizontal dotted progress library 
Typescript :: npm uninstall typescript 
Typescript :: add space between subplots matplotlib 
Typescript :: cannot be loaded because running scripts is disabled on this system 
Typescript :: adonis make model 
Typescript :: vue pmvue.ps1 cannot be loaded because running scripts is disabled on this system 
Typescript :: how to do limits in latex 
Typescript :: passport serializeuser 
Typescript :: dart check if string is contained in list of strings 
Typescript :: angular add httpclient 
Typescript :: button center mui 
Typescript :: How To Fix Error PS1 Can Not Be Loaded Because Running Scripts Is Disabled On This System In Angular 
Typescript :: subplots titles 
Typescript :: serenity.-is add column picker button 
Typescript :: prevent row click event when button is clicked angular html 
Typescript :: how to call two method connected 
Typescript :: python retrieve name of sheets in workbook 
Typescript :: cell between quotation marks google spreadsheet 
Typescript :: useref input typescript 
Typescript :: useref typescript 
Typescript :: angular innerhtml style not working 
Typescript :: typeorm find orderby 
Typescript :: googleapis fonts cdn link 
Typescript :: match a string that starts and ends with the same vowel 
Typescript :: subtracting two date objects in javacript 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =