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

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

css max width media

@media only screen and (max-width: 600px) {
  // styles go here 
}
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

common media query max width values

320px — 480px: Mobile devices.
481px — 768px: iPads, Tablets.
769px — 1024px: Small screens, laptops.
1025px — 1200px: Desktops, large screens.
1201px and more — Extra large screens, TV.
Comment

PREVIOUS NEXT
Code Example
Css :: linux remove files except 
Css :: make table resopnsive for mobile 
Css :: bulma uppercase 
Css :: change bg color on hover 
Css :: how to center icon vertically in react js 
Css :: how to link css to html flask 
Css :: had to add a tint to a picture on css 
Css :: inline pseudo element 
Css :: css make text closer together 
Css :: inline input form css 
Css :: add tailwindcss to angular 
Css :: refresh css on page 
Css :: css horizontal line around text 
Css :: what is descendant selector 
Css :: css border styles 
Css :: hide in css 
Css :: increase the distance between paragraphs css 
Css :: ease in out css 
Css :: hide navbar css 
Css :: move image around in image div 
Css :: flexbox 
Css :: webpack animate.css 
Css :: line icon css 
Css :: css animations 
Css :: difference between html and css 
Css :: remove black shadow from border 
Css :: Responsive Web Design - Videos 
Css :: css text color 
Css :: para que sirve justify-content-center 
Css :: tailwind icon animation 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =