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 :: text-overflow ellipsis multiple lines 
Css :: button style none 
Css :: css peek not working 
Css :: background color none 
Css :: @media between two sizes 
Css :: css transition visibility 
Css :: otf css3 font-face 
Css :: loop scss 
Css :: remove underline from link css 
Css :: how to make text bold in css 
Css :: background image css 
Css :: AppDataRoaming pm eact-native.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. 
Css :: gradient text html 
Css :: limit p css 
Css :: make something unclickable css 
Css :: invert css 
Css :: radio checked css 
Css :: prevent text from going to next line css 
Css :: bootstrap col no gaps 
Css :: import css in thymeleaf 
Css :: calc sass variables 
Css :: how to put element in center in html 
Css :: resize logo html css 
Css :: css circle border 
Css :: css animation loop 
Css :: transition scale 
Css :: box shadow to make border bottom 
Css :: background gradient problem 
Css :: css text bottom to top 
Css :: trasition opacity 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =