Search
 
SCRIPT & CODE EXAMPLE
 

CSS

media query min and max width for all devices


@media only screen and (max-width: 480px) and (min-width: 320px)  {
  /* mobile-devices */
  
}

@media only screen and (max-width: 768px) and (min-width: 481px)  {
  /* iPads, Tablets */
   
}

@media only screen and (max-width: 1024px) and (min-width: 769px)  {
  /* small screens, laptops */
  
}

@media only screen and (min-width: 1024px)  {
  /* Desktops, large screens */

}
Comment

media query for mobile min and max width

@media only screen and (max-width: 399px) {...}
@media only screen and (min-width: 400px) and (max-width: 600px)   {...}
@media only screen and (min-width: 601px) {...}
Comment

media query for mobile min and max width both

@media only screen and (max-width: 600px) and (min-width: 400px)  {...}
Comment

media query min and max width for all devices


@media only screen and (max-width: 480px) and (min-width: 320px)  {
  /* mobile-devices */
    .width {
    background: var(--clr-grey);
  }
}

@media only screen and (max-width: 768px) and (min-width: 481px)  {
  /* iPads, Tablets */
    .width {
    background: var(--clr-pink);
  }
}

@media only screen and (max-width: 1024px) and (min-width: 769px)  {
  /* small screens, laptops */
    .width {
    background: var(--clr-yellow);
  }
}

@media only screen and (min-width: 1024px)  {
  /* Desktops, large screens */
    .width {
    background: var(--clr-yellow);
  }
}
Comment

PREVIOUS NEXT
Code Example
Css :: responsive table in tailwind css 
Css :: Correct border property to add ROUNDED borders to the elements 
Css :: html css tilt text 
Css :: css opacity 
Css :: how to remove image using css 
Css :: css button pressed effect 
Css :: css z index 
Css :: how to center a div with position absolute 
Css :: how hide in html 
Css :: backgorund color transitition css 
Css :: media min height css 
Css :: CSS technique for a horizontal line with icons in the middle 
Css :: onclick after color change in css 
Css :: CSS adding background image from file 
Css :: Error: Could not find "stylelint-csstree-validator" 
Css :: overflow property 
Css :: tile format css 
Css :: css div take remaining screen height 
Css :: bulma uppercase 
Css :: why margin is not working on label css 
Css :: css make text closer together 
Css :: css fontface 
Css :: array_filter use keys 
Css :: image orientation css 
Css :: animate zoom in and zoom out in css 
Css :: progress bar bootstrap border 
Css :: hide navbar css 
Css :: custom select dropdown css only codepen 
Css :: how to include css in handlebars 
Css :: line icon cdn 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =