Search
 
SCRIPT & CODE EXAMPLE
 

CSS

media query min and max

/* Max-width */
@media only screen and (max-width: 600px)  {...}

/* Min-width */
@media only screen and (min-width: 600px)  {...}

/* Combining media query expressions */
@media only screen and (max-width: 600px) and (min-width: 400px)  {...}
Comment

media query min max

@media screen and (min-width: 200px) and (max-width: 640px) {
  .bloc {
    display:block;
    clear:both;
  }
}
Comment

min and max width media query

@media (max-width: 989px) and (min-width: 768px) {}
Comment

css media query max width

/*
 # ref: https://www.w3schools.com/css/css3_mediaqueries_ex.asp
 - On screens that are 992px or less, set the background color to blue 
 - Smaller screens
*/
@media screen and (max-width: 400px) {
  body {
    background-color: blue;
  }
}

/* 
 - On screens that are 992px or more, set the background color to red
 - Larger screens
*/
@media screen and (min-width: 992px) {
  body {
    background-color: red;
  }
}
Comment

what is a max and min width media query

/* What this query really means, is If [device width] is less than or equal to 600px, then do */
@media only screen and (max-width: 600px)  {...}

/* What this query really means, is If [device width] is greater than or equal to 600px, then do */
@media only screen and (min-width: 600px) {...}
Comment

media query min and max width

@media screen and (max-width: 992px) {
  body {
    background-color: blue;
  }
}
Comment

PREVIOUS NEXT
Code Example
Css :: css how to make text not break 
Css :: reset submit input style 
Css :: how to change the underline thickness in css 
Css :: antialiasing css 
Css :: css media queries between two sizes 
Css :: css visibility transition 
Css :: css all ids starting with 
Css :: how to hide the bullet list css 
Css :: css a link remove underline 
Css :: css code to make text bold 
Css :: remove blue border on a input 
Css :: powershell error ps1 cannot be loaded because running scripts is disabled on this system 
Css :: add gradient to text css 
Css :: limit paragraph by 2 lines css 
Css :: how to slow down hover effect css 
Css :: CSS make image fill whole background 
Css :: css image sharpen 
Css :: css table row border radius 
Css :: half circle css 
Css :: drop shadow image css 
Css :: remove arrow summary tag css 
Css :: center text css 
Css :: text underline hover css 
Css :: css text limit 
Css :: give transition on box shadow 
Css :: css horizontal center 
Css :: prevent screen reader from reading text out loud css 
Css :: como colocar o footer sempre no final da página 
Css :: print media css 
Css :: center div horizontally 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =