homepage Welcome to WebmasterWorld Guest from 50.17.79.35
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Mobile Internet / Mobile Web Site Design and Development
Forum Library, Charter, Moderator: open

Mobile Web Site Design and Development Forum

    
desktops calling both standard AND mobile css. Is that normal?
ChanandlerBong




msg:4615115
 2:22 pm on Oct 7, 2013 (gmt 0)

I noticed in my logfiles that laptops/desktops seem to be calling my mobile.css

I did a test myself and confirmed this. My site is calling mobile.css when I use an apple/android device and I can see the site how it should be on smaller devices, but I don't see why large devices are also calling my mobile.css and then not using it.

What I have in the head is

<link media="only screen and (max-device-width: 800px)" href="/mobile.css" type="text/css" rel="stylesheet">

I thought this would mean "only load mobile css if you are a small device" whereas it seems to be working "download this but only use it if you are a small device".

is that how it works?

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Mobile Internet / Mobile Web Site Design and Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved