Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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 :: how to set text to middle in div 
Css :: hide scrollbar of a div but keep functionality 
Css :: css grid row height with repeat 
Css :: css get screen height 
Css :: ionic mobile always dark theme in web 
Css :: css hover but no click 
Css :: input type password css 
Css :: flex direction tailwind 
Css :: css img src 
Css :: image responsive css 
Css :: how to add css using nativeelement in angular 
Css :: rotate keyfreame animation 
Css :: better transition timing functions 
Css :: table data max width 
Css :: border css shorthand 
Css :: css inverted border radius 
Css :: image overlay in css 
Css :: css columns 
Css :: how hide in html 
Css :: css grid 1 row 2 columns 
Css :: how to make div scrollable horizontal 
Css :: gravity forms css classes 
Css :: css image transparency 
Css :: how to disable css-select select box 
Css :: css disabled hover style 
Css :: check ssh port 
Css :: css make text closer together 
Css :: 1rem to px 
Css :: css hover affect other item 
Css :: css padding syntax 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =