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

maxheight media query

@media screen and (max-width: 995px), 
       screen and (max-height: 700px) {
  ...
}
Comment

media query for max width and height

@media only screen and (max-width: 535px), screen and (max-height:550px ) {
}
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 mask cut diagonal 
Css :: secltor for parent li css 
Css :: javascript index value 
Css :: css3 ripple loop 
Css :: To make multiple equal width buttons occupy container width 
Css :: como hacer que me queden los nombres dentro de un formulario css 
Css :: how to give height equal to parent height css 
Css :: CSS :hover Selector 
Css :: css or selector 
Css :: css change background color 
Css :: import import bootstrap-social as css file; 
Css :: python css 
Css :: resctrict css to apply on div 
Css :: radius to imported icons 
Css :: css 100vh minus header 
Css :: ohmyzsh shortcut to oepn folder with vscode 
Css :: add title to slider 
Css :: css custom cursor form image 
Css :: CSS Table Alignment 
Css :: chrome developer tools css customize 
Css :: css table grid 
Css :: Responsive Web Design - Media Queries 
Css :: how to customize placeholder css 
Css :: how to use the display property 
Css :: css pixel art 
Css :: html display text in alternating coloured panels 
Css :: Evaluate ruby code inside html :css filter 
Css :: string interning in python 
Css :: css tutorials 
Css :: faunadb q.do 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =