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 custom properties 
Css :: scss select all childs 
Css :: hex codes of bootstrap colours 
Css :: customize scroll bar css 
Css :: css create a circle image 
Css :: This message is shown once a day. To disable it please create 
Css :: line height tailwind 
Css :: css filter 
Css :: css select text inside div 
Css :: move text in a padding css 
Css :: display elements in column css 
Css :: resize any element in CSS 
Css :: include screen size 
Css :: css transition on click 
Css :: how to put different p elements next to each 
Css :: css overflow 
Css :: loading animation css 
Css :: html checkbox change styling 
Css :: css line height 
Css :: scss darken 
Css :: css when i add a border radius to input problem 
Css :: jQuery ripple effects 
Css :: css text background 
Css :: code css for mozila 
Css :: How to force fully show the keyboard in android 
Css :: send element to center of div 
Css :: fonts from google fonts do not work 
Css :: Tailwindcss Breadcrumb 
Css :: css button 
Css :: format hexagonal css get 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =