css tricks media queries

Solutions on MaxInterview for css tricks media queries by the best coders in the world

showing results for - "css tricks media queries"
Ricardo
12 Jan 2018
1/* ----------- iPhone 4 and 4S ----------- */
2
3/* Portrait and Landscape */
4@media only screen 
5  and (min-device-width: 320px) 
6  and (max-device-width: 480px)
7  and (-webkit-min-device-pixel-ratio: 2) {
8
9}
10
11/* Portrait */
12@media only screen 
13  and (min-device-width: 320px) 
14  and (max-device-width: 480px)
15  and (-webkit-min-device-pixel-ratio: 2)
16  and (orientation: portrait) {
17}
18
19/* Landscape */
20@media only screen 
21  and (min-device-width: 320px) 
22  and (max-device-width: 480px)
23  and (-webkit-min-device-pixel-ratio: 2)
24  and (orientation: landscape) {
25
26}
27
28/* ----------- iPhone 5, 5S, 5C and 5SE ----------- */
29
30/* Portrait and Landscape */
31@media only screen 
32  and (min-device-width: 320px) 
33  and (max-device-width: 568px)
34  and (-webkit-min-device-pixel-ratio: 2) {
35
36}
37
38/* Portrait */
39@media only screen 
40  and (min-device-width: 320px) 
41  and (max-device-width: 568px)
42  and (-webkit-min-device-pixel-ratio: 2)
43  and (orientation: portrait) {
44}
45
46/* Landscape */
47@media only screen 
48  and (min-device-width: 320px) 
49  and (max-device-width: 568px)
50  and (-webkit-min-device-pixel-ratio: 2)
51  and (orientation: landscape) {
52
53}
54
55/* ----------- iPhone 6, 6S, 7 and 8 ----------- */
56
57/* Portrait and Landscape */
58@media only screen 
59  and (min-device-width: 375px) 
60  and (max-device-width: 667px) 
61  and (-webkit-min-device-pixel-ratio: 2) { 
62
63}
64
65/* Portrait */
66@media only screen 
67  and (min-device-width: 375px) 
68  and (max-device-width: 667px) 
69  and (-webkit-min-device-pixel-ratio: 2)
70  and (orientation: portrait) { 
71
72}
73
74/* Landscape */
75@media only screen 
76  and (min-device-width: 375px) 
77  and (max-device-width: 667px) 
78  and (-webkit-min-device-pixel-ratio: 2)
79  and (orientation: landscape) { 
80
81}
82
83/* ----------- iPhone 6+, 7+ and 8+ ----------- */
84
85/* Portrait and Landscape */
86@media only screen 
87  and (min-device-width: 414px) 
88  and (max-device-width: 736px) 
89  and (-webkit-min-device-pixel-ratio: 3) { 
90
91}
92
93/* Portrait */
94@media only screen 
95  and (min-device-width: 414px) 
96  and (max-device-width: 736px) 
97  and (-webkit-min-device-pixel-ratio: 3)
98  and (orientation: portrait) { 
99
100}
101
102/* Landscape */
103@media only screen 
104  and (min-device-width: 414px) 
105  and (max-device-width: 736px) 
106  and (-webkit-min-device-pixel-ratio: 3)
107  and (orientation: landscape) { 
108
109}
110
111/* ----------- iPhone X ----------- */
112
113/* Portrait and Landscape */
114@media only screen 
115  and (min-device-width: 375px) 
116  and (max-device-width: 812px) 
117  and (-webkit-min-device-pixel-ratio: 3) { 
118
119}
120
121/* Portrait */
122@media only screen 
123  and (min-device-width: 375px) 
124  and (max-device-width: 812px) 
125  and (-webkit-min-device-pixel-ratio: 3)
126  and (orientation: portrait) { 
127
128}
129
130/* Landscape */
131@media only screen 
132  and (min-device-width: 375px) 
133  and (max-device-width: 812px) 
134  and (-webkit-min-device-pixel-ratio: 3)
135  and (orientation: landscape) { 
136
137}
Apollo
13 May 2018
1@media (min-width: 600px) and (max-width: 800px) {
2
3/* your css code here  */
4
5/* html { background: red; } */
6
7
8}
Marik
24 Apr 2020
1@media (max-width: 767px)   {
2
3      .container{width:100%} *{color:green;}-Mobile
4
5    }
6
7
8    @media (min-width: 768px)  {
9
10     .container{width:100%} *{color:pink  } -Desktop
11
12    }
13    @media (min-width: 768px) and (orientation:portrait)  {
14
15       .container{width:100%} *{color:yellow  } -Mobile
16
17    }
18    @media (min-width: 1024px)  {
19
20       .container{width:100%} *{color:pink  } -Desktop
21
22    }
23    @media (min-width: 1200px)  {
24
25    .container{width:1180px} *{color:pink   } -Desktop
26
27    }
28
queries leading to this page
laptop media queuresmedia query for laptop screenmobile screen size for media querymedia query css devicesmedia query for small laptoplandscape media query for which media type do you use in a media query for mobile devicesmedia queries all devicesmedia query devicesmedia query css for monitor and laptop screencss media query iphonemedia query of the laptopmedia query css for all mobile devicesmedia queries for laptop screenmedia queries css trickswhat is media query listtablet media query breakpointscsstricks 40 media screenscss common phone sizesmedia querys for all devicesmedia query css trickstablet landscape and portrait css media queryall devices media queriesformat tablet media queriescss media queriesdifferent smartphonescss iphone media querydifferent devices and media queries most used media query sizesmedia query css for mobile devicesmedia query mobile landscapemeny devices for media queriesmedia query for mobile phonescss media query for computer screenlaptop media cssresponsive media queries for all devicesmedia queries width of all devicescss media query devicesandroid width mediaportrait tablet320px media querymedia queries laptophow write proper media query for all devicessyntax for media query only mobiledevice ratio query tabletmedia queries laptopsiphone breakpointscss tablet portraitphone portrait media querycss tricks media querymedia query for 49 inch screenmedia query for all mobile devicessmartphone screen width cssresponsive media queries code freeresponsive media query for all devicesmedia query only works on 1000pxadvanced css media querieshow to use media csscss media queries for all devices and browsers for beginnersmedia quer pixel sizescss media query for all mobile devicestutorialrepublic com media query css for all devicescss for less then 1350 media querymedia query css for all devicescss media query for all devicesmedia query css for devicesmedia querie laptopmedia css for all devicesmedia query ipad landscapecss tablet breakpointtablet size media querymedia query css list screen sizemedia query css for iphoneresponsive mobile screen size htmlstandard media query for all devicesreusable media query css for all deviceshow to use media query css for all devicescss media queries landscape mobilecss tricks media queriesmedia query css trickstablet media querymedia queries css for different devicestablet min widthcss kiosk media querymedia width css mobilemedia queries for standard devicesmax width portraitcss tricks breakpointscss tricks media queriesmedia queries values for all devicesmedia query for laptop screenstablet breakpoints csslaptop screen media query cssmedia query to fit all screen sizecsstricks 40 media screens for desktopsuse media query for ios media screen for laptop cssmedia screen for iphonescreen size responsivemedia query to cover most common devicesmedia query landscapemobile breakpoint medcss media queries for android devicesbreakpoints css tricksmedia query with deviceslaptop media query use ipad elementsmobile landscape view media querycss media query comparison tablemedia query resolution for all deviceslaptop css media querymedia query target one screen sizemedia screen laptopmedia query css mobile and tabletcss screen media with tablet blazor appbest media queries to adapt to all deviceslaptop screen size media query cssmedia query for desktop onlymedia query for mobile portrait and landscapemedia queries tricksdevices categories cssresponsive media queries css for all devicescss for mobile maxcss media queries laptopmedia query for tablet landscapedifferent media query for iosmedia query using flexbox to keep same css when creen is bigger 40 media css mobileall devices media queryandroid media querymedia query media sizesmedia queries in css 2b handles devicesmedia use in css all devicescss media queries ormeida css for all devicesmedia queries fit to devicemedia query for regular sized devices 28laptops and desktopsmedia responsive all devicesmedia query tablet landscape onlydevice specific media queries fixed width and heightlandscape media query for all devicesmobile responsive querylarge mobile landscape media querylaptop screen media query cchow to write media queries fo ipadsetting tablet specific cssmedia device cssafter providing media queries still get it from previousmedia query for iphonetarget all devices media querylaptop standard max pixels for csscss media queries tabletcss targeting a device sizecss media queries 13inch laptopmedia query orientation portrait and landscape tabletproper media screen query for mobilerealme xt css media querymedia queries latest tip and trickschange before property in media query cssmedia query for tablet and ipadstandard media query for iphonecss media query easy trickshow to create a media query in css for mobile devicesstandard devices media querieshow to set the media query for all devices in csssscreen dimentions for tablet in cssmedia query for mobile width 320pxmedia query for laptopcss tricks media qureiescss3 media queries for all devicesmedia query for fixed devicesmedia queries for smartphonescss media query for iphonecss media query how to measuresmallest query css doesn 27t showcss media trickscss media query phone landscapesmallest screen size media querycss media queries all mobile devicesmedia query for mobile min width 768media query for mobile portraitbest media query for all devicescss media query mobile portraitmedia query css all devicesmedia query for phone screen landscapemedia query landscape mobilemost common breakpoins csstrickscss media queries for laptopmedia queries for all the deviceshow to make response css my code for mobilecss laptop screen sizecss media mobile landscapedevices media queriesmedia query list for all deviceslaptop mediaquery css 40media only screen default for all devicesall laptops media query cssmedia query templatecheck for devide 40media cssthe responsive breakpoints in css tricksmobile devices css mediastandard screen size css media queriesbreakpoint css tabletrecomended media queries cssmedia query for devicesmedia query min width for desktopmax width for smartphonemedia query css for laptop and desktopdesktop size cssmedia query for table and mmobiledo i have to media query each screen size to work on all devicesmedia query css for mobile browser window sizelist of media queries in cssresponsive width sizemobile phone css media querycss media queries for all deviceshow to make a website responsive media queriescss tricks breakpointsdesktop media query create cssmobile css stylesmedia screen for all devicesmedia querry for smart phonehow to add media query to csscss 40media ipad and mobile onlycss media query devicemedia query responsicecss media query for all devices less than 768css media queries mobile and desktopcss media quiery laptop 1900media responsivemedia queries breakpoints screen firsttablet breakpoint cssresponsive design design screen size landscape csscss check double mediadevice specific cssmedia queries for devicescss one media quiry to rule them alllarge mobile media querymedia query for tablet viewporthow to make responsive for all devices media queriesmedia query css standard sizes13 inch laptop media querycss media query for laptop screenbasics of media queries css trickscss media screen sizes mobile and macbooklist of devices media querieslist of media queries cssall media queries for most modern deviceshow to use media quetycss tricks media screenmedia query for desktop viewportphones resolution media query css 40media all and 28min width 768px 29declaring media queries for devicesmake media view port for all mobile devcesmedia tablet cssmedia quert for tabletwhat are the media breakpoints of an iphoneall size media query cssresponsive screen breakpointscss media queries css trickstablet landscapelaptop screen media querymedia query in css for laptopuse media query forandroidmedia queries for all devices step by step code example cssportrait css media querytab media query with heightmedia queries to cover all devicesnot mobile css mediahow to use 40media css for all devicesssmallest device screen for media queriesmedia queries css tricksmedia query css for common devicessizes of laptop screens and responsive device for csscss media queries all deviceshow to set width in ipad size width is out of page using media querhymediaquery for iphone 40media screen css 32 inchmedia query for phone sizetablet screen size media queriesmediaquery from phone to tablet or ipadnew iphone media query landscapemedia query width for all devicesiphone media querycss media queries tabletsiphone media query breakpointslandscape devices css media query 2f 2a tablets ipads portrait mode widthmedia query portraitcss media query motoz4mobile screens width in css html 40media screen for all devicesmedia query laptop widthmobile portrait and landscape size media querymedia query what if the nav is not full width8 inch tablet screen size media querymedia queries css tv devicesresponsive for all devicesmedia queries in css for all devicesmedia query mention all devicesmedia query desktopmedia query only mobile devicemobile and laptop compatible size csscss size of image landscape tabletmedia query pixelsmedia query listcss media queriesiphone device media querycss media query for smartphonemedia query for mobile devicecss media query all devicescss media query for tablethow to write media queries css for responsive designmedia queries in css tablet widhtcommon media query for every mobile devicetablet landscape media queryhtml if windows less than 900 show somethingmedia query for pc and laptopmax device width for tablet in landscapecss movile creenmedia query css for mobilelaptop media querycss laptop media querymedia query css for mobile css tricks iphoneall device responsive media queriesmedia queries for laptopsportrait media querycss media queries devicesem media queries listcss phone widthlist of media queriesmedia query phone landscapecsstricks standard media queriesstandard media query sizescss mobile landscape media queryiphone size media querymedia query for different different devicemedia query css min and max for all devicesmedia queries in css3 css trickslandscape media querymedia queries for all devices cssall devices media queries csscss tricks 40media querymedia queries small laptop mac book scrren media querymedia query for ipadbest css media queries for all devicesmedia query to cover all resolutions of desktopgood maxwidth for phone screens cssmedia queries recommended sizeshow to set media query in css for 1 phone 6media query all devices cssmedia query for specific phone and another one for allmedia query css for laptop screen 40media tablet sizemedia query to add all devicesmedia queries for all devices 2020media query in css tricksways to step up media queriesmedia screen after what screen size should go mobilecss media for iphonemobilephone media query sizecss media queries for small laptopmobile device media querysmedia query mobile screen landscape and portraittarget a device with landscape screenmedia queries list for all devicesmedia query to keep coloumns horizontal in mobilehow to design css for mobilemedia query css iphonemedia query css tricks tutorailmedia standartds csscss trick media querycss media query for laptopcss media query for mobile devicesmedia query for 414pxproper media queries css for all devices and browsersmedia query css for all devices except mobilecss media queries for specific deviceslandscape mobile media querymedia queries for different devicescss 40media size tabletsliding scale media query vs fixed points 40media screen and 28max width 768px 29media query css for all devices sizemedia query tips and trickscreate two empty media queries for tabletmedia query portrait onlymobiles standing pixelframes media querymedia query mobile devices onlystandard bucket size mediaquerymediaqueries large device rangehow to write the iphone 5 2fse break points in cssmedia query for mobile landscapehow to apply media query for mobile devices in css 40media laptop pixels min widthtcss media query width divided by hestandard size of media querymedia query to select for typical tablet device viewport sizemediaqueries csstrickcss media query mobilemedia queries standardtablet size media query for responsive designmedia width css for laptopshow to write media quries for potrait and landscape in csscss media queries desktopcan 27t use more than one media queryhow to make responsive website in css less than screen sizemedia query css for all devices with examplecss 40media tabletcss trick media queries 40media only screen desktopcss3 media queries for 200 25iphone media query cssresponsive media queries for all mobile devicesmediaquery ipadcss media queries trickscss media all devicesmedia query device sizesresponsive media query examplesmall devices pixel media queryhtml and css screen sizes media query for size rangestablet size css 40media query 700 and belowadd media query for all devicessghhould media queries be at the end or after the selected classcss media query how many pixels is barhow to create media queries in responsive web designmedia query all devices css html 5media queries for screen sizeswhen to use media query for styling it 27s avoiding some style of element for that screen how to fixmedia css for all device 22media query 22 target device typewhat is mobile width and tablet width cssmedia query laptop screenmedia query all devicesmedia screen css for all devicescss media query tricksall media queries devicescss media query for all iphonescss tricks com media queriescss guidelines for laptop screen 2c mobile screen and tablet screenresponsive media queries css tricksmin screen width standard 40media css mobile phonescss tricks media querysmartphone standard media css 40media iphonehow to make 40media html css trickstablet mediaquerieslandscape media queries csscss media query pcmedia query min and 28max for all devices 29css media queries for tabletshow to write media query in css for all devicesmedia query css for laptopmax width mobile csscss tricks media queries for standard devicesmedia query device phonehow to put media query in cssmain media query sizeslaptop media screen cssmobile phone media queriesmedia querie iphonescreen mobile media cssmedia query min and max with orientation landscapemedia queries affecting csscss advanced media queriescss media query for all devices w3schoolslandscape media query for mobilemedia query for button to scale with all devicestablet mediaquerycss max width for mobilemedia quesries for viewport on different devicesmin device width mobile 3fnew device media queries cssmedia query first mobile or tabletcss common media queries mobile devicesmedia query for landscape mobilecss3 responsive for all devicesmedia screen in css devicesmedia query laptopmedia query from tablet csshtml page example with media query for i phonelaptop media queriesmedia query css moblenew for all device media queries cssdoes default css media queries apply on landscape phonescss best mobile sizecss tricks media query sizesmedia query for standard devicesmedia queries for standard devices 2020css media query laptopmedia query for all devices needed css media reference all devicesall device media query cssmedia queries for laptop screensmedia query portrait and max widthlaptop media query cssimplementation of media query css tricksmedia query mobile portraitmedia query css for all devicestandard size media queriesmobile portrait small size landscape design cssadd media queries csshow to set media query for all devices allmobile phone media queryhow to add a laptop screen in html pagecss media query most commonmedia query for laptop screens and large screensstandard media query cssmedia query for iphone and android breakpoint of mobile phones in pixelslandscape phones csswrite media query for laptop 2cpc screensmedia query css for xl screenmedia query tricksmedia query for mobile and tabletcss media query mobile devicemedia queries for iphonemaximum mobile media query wdith css trickswhich one of the following is a media query for devicescss media query tabletmobile landscape media querycss media queries for all resolutionsmedia query for small phonescss device media querieswhats the height of laptop media queries css 40media screen width sizeswidt sizes mobile 2c tablet screeenmedia query all mobile devicesmedia query css fit screen sizeonly landscape media querylandscape tablet media query breakpointsmedia query and how to specify that to different types of devicesresponsive screen width csslaptop screen size pixels media querymedia query for all devicesmedia width mobileiphone media querzcss media laptopmedia query setup for all deviceshow to set media query in css for iphonecommon media query for all mobile deviceslaptop monitor css media querymedia query for landscapemedia queries for all devicesmedi query width sizeshow to write media query for all deviceshow to set media query for all devicesmedia query css for device type 40media querycss media query for devices csstricscss common media queriesmedia query min and max for all devicesmedia query for mobile screen devices with maximum widthipad media querycss media to show in all deviceswhat 40media query do i use for turned phone screenscss tricks media queries