Search
 
SCRIPT & CODE EXAMPLE
 

CSS

media max height css

@media only screen and (max-height: 500px) {
  /* place here CSS for when the screen is less than 500px tall */
  .card {
    width: 100%;
  }
}
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 min height css

@media only screen and (min-height: 500px) {
  /* place here CSS for when the screen is more than 500px tall */
  .card {
    background: #111;
  }
}
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 disabled 
Css :: how to select child when hover on parent element css 
Css :: scss how to use a variable in entire angular project 
Css :: css select all immediate children 
Css :: css mutline comment 
Css :: css font families 
Css :: create arrow div css 
Css :: css word break 
Css :: css fadeout animation 
Css :: what does em stand for in css 
Css :: css div take remaining screen height 
Css :: css break after 2 words 
Css :: how to center text in a div 
Css :: Input with File type css override 
Css :: add profile picture to a form in html and css 
Css :: css list in line 
Css :: 1rem to px 
Css :: block elements css 
Css :: bootstrap table striped change color 
Css :: nesting in sass 
Css :: Capitalise all first letters of words in a sentence with css 
Css :: css linkup 
Css :: double color background css 
Css :: backdrop filter all properties 
Css :: hide image title on hover css 
Css :: css line height 
Css :: nav bar without display:flex 
Css :: id ends with css 
Css :: clear both css 
Css :: how to back animation in css 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =