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 :: adobe xd to html and css 
Css :: github pages not loading css 
Css :: blob svg 
Css :: css root seletor 
Css :: most essential css elements 
Css :: How to truncate a multiline text using css 
Typescript :: prettier not working with tsx 
Typescript :: remove dots from li 
Typescript :: ng update @angular/core @angular/cli 
Typescript :: iterate dictionary ts 
Typescript :: react children 
Typescript :: if exists drop a temp table 
Typescript :: drop table if it exists mysql 
Typescript :: sort array of objects in react js 
Typescript :: angular get url param 
Typescript :: show grants user 
Typescript :: three dots icon flutter 
Typescript :: execute only one test spec with angular-cli (ng test) 
Typescript :: useStae with array of strings typescript 
Typescript :: highcharts cdn links 
Typescript :: andonis many to many detach 
Typescript :: How many different virtual connections can exist between a node and an ATM network 
Typescript :: list the constituents of the xylem. what would happen if the xylem of root of a plant is blocked? 
Typescript :: nodemon.ps1 cannot be loaded because running scripts is disabled on this system. 
Typescript :: how to see constraints in postgresql 
Typescript :: how to find how many digits a number has in c++ 
Typescript :: adding headers to httpclient angular 
Typescript :: No type arguments expected for interface ListAdapter 
Typescript :: typescript jest types not found 
Typescript :: open access execution policies in VSCode 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =