Search
 
SCRIPT & CODE EXAMPLE
 

CSS

all devices media query css

/* For Desktop View */
@media screen and (min-width: 1024px) {
  
}
 
/* For Tablet View */
@media screen and (min-device-width: 768px)
and (max-device-width: 1024px) {
  
}
 
/* For Mobile Portrait View */
@media screen and (max-device-width: 480px)
and (orientation: portrait) {
  
}
 
/* For Mobile Landscape View */
@media screen and (max-device-width: 640px)
and (orientation: landscape) {
  
}
 
/* For Mobile Phones Portrait or Landscape View */
@media screen and (max-device-width: 640px) {
  
}
 
/* For iPhone 4 Portrait or Landscape View */
@media screen and (min-device-width: 320px)
and (-webkit-min-device-pixel-ratio: 2) {
  
}
 
/* For iPhone 5 Portrait or Landscape View */
@media (device-height: 568px) and (device-width: 320px)
and (-webkit-min-device-pixel-ratio: 2) {
  
}
 
/* For iPhone 6 and 6 plus Portrait or Landscape View */
@media (min-device-height: 667px) and (min-device-width: 375px)
and (-webkit-min-device-pixel-ratio: 3) {
  
}
Comment

@media for all devices

@media (min-width: 640px) { }
@media (min-width: 768px) { }
@media (min-width: 1024px) { }
@media (min-width: 1280px) { }
@media (min-width: 1536px) { }
Comment

media query css for all devices

@media (min-width: 600px) and (max-width: 800px) {

/* your css code here  */

/* html { background: red; } */


}
Comment

PREVIOUS NEXT
Code Example
Css :: grid center 
Css :: center grid 
Css :: backwards text css 
Css :: make triangle using div 
Css :: blocksatz css 
Css :: css horizontal ul 
Css :: add black layer on image css 
Css :: hide scrolbar tailwind 
Css :: como colocar o footer sempre no final da página 
Css :: how to make font awesome responsive bootstrap 
Css :: how to remove link color from <a 
Css :: hover button scss 
Css :: npx stylelint "**/*.{css,scss}" not working 
Css :: css box-shadow 
Css :: scss watch command 
Css :: rust get current date 
Css :: hide scroll bar 
Css :: autofit grid css 
Css :: how to remove border of a specific side of td in css 
Css :: css heart 
Css :: css shadow border 
Css :: change color to white svg with filter 
Css :: codeigniter return last inserted id 
Css :: how to center horizontally in css 
Css :: hide li bullet css bootstrap 5 
Css :: ghana 
Css :: center items 
Css :: show ellipsis after text length 
Css :: remove list dots on li 
Css :: mat stepper custom css 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =