javascript - CSS media queries get messed up -


it's not serious question, want share , more information css media queries.

i find own css media queries comfortable, still has many flaw in it. know today mobile device growing fast, of them has same resolution tablet or laptop.

let's case

this order of media queries in index.php

    <!-- bootstrap -->     <link rel="stylesheet" type="text/css" href="style/bootstrap/css/bootstrap.min.css">     <!-- custom -->     <link rel="stylesheet" type="text/css" href="style/css/main.css">     <link rel="stylesheet" type="text/css" href="style/css/laptop.css">     <link rel="stylesheet" type="text/css" href="style/css/mobile.css"> 
  1. i using bootstrap make type less,
  2. main.css dekstop view, best view on desktop resolution, 1920x1080p , below not perfect.
  3. mobile.css device phone , tablet, , default mobile device , ipad resolution, android resolution little bit messed because of android resolution rough , unidentify, , if device media queries away 768px messed up,
  4. laptop.css laptop view , not working thought.

    this css code each media main.css plain, mobile.css like

    /*default*/ @media screen , (max-width: 768px) {   button, font, etc. }   /*default portrait*/ @media screen , (max-width: 768px) , (orientation: portrait) {  working on both kind of device ios , android. }   /* ipad portrait */ @media screen    , (min-device-width: 768px)    , (max-device-width: 1024px)    , (orientation: portrait)    , (-webkit-min-device-pixel-ratio: 1) { }   /* ipad landscape */ @media screen    , (min-device-width: 768px)    , (max-device-width: 1024px)    , (orientation: landscape)    , (-webkit-min-device-pixel-ratio: 1) { }   /*default landscape*/ @media screen , (max-width: 768px) , (orientation: landscape) {     1 it's little bit tricky because of phone device has length laptop resolution. } 

    and laptop.css

    @media screen     , (min-device-width: 1024px)     , (max-device-width: 1280px)     , (-webkit-min-device-pixel-ratio: 1) {  got old laptop, square laptop too.    }  /* ----------- non-retina screens ----------- */ @media screen    , (min-device-width: 1200px)    , (max-device-width: 1600px)    , (-webkit-min-device-pixel-ratio: 1) {    }  /* ----------- retina screens ----------- */ @media screen    , (min-device-width: 1200px)    , (max-device-width: 1600px)    , (-webkit-min-device-pixel-ratio: 2)   , (min-resolution: 192dpi) {    } 

this link i've got media queries, not of them picked. , adding of media queries.

the terrific of them absolute position , flying 2 dives img below. in here looks still not perfect, im afraid if device out of resolution media queries messed up.

enter image description here enter image description here

so, web developer, media queries? hope u can drop answer , inspiration in here.

i saw using multiple files media queries. try combine them in 1 media.css & solve half of problems. using media queries multiple files causes conflict.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -