12
6
|
I've looked through the stack overflow topics on this question, as well as some google search results but I can't seem to solve my issue.
I've created a stylesheet for mobile devices(mobile.css) which is essentially a copy of my main.css with changes to many of the attributes. When I load only mobile.css as the stylesheet it looks great on my iPhone, just how I want it to. However when I put both in, I am getting a mix of both, but more of the main.css
Any idea why?
|
How do you "put both in"? – Blender Sep 20 '11 at 3:47
| |||
My code isn't showing up for some reason when I posted it... Could you look at the source at: www.cuhvz.com/sandbox/home.php – xIlluzionx Sep 20 '11 at 4:13
| |||
Fixed it. It should work now. – Blender Sep 20 '11 at 4:14
|
20
|
According to documents, syntax of loading another file in specific device/condition is like this:
This will only one css file for every single amount of
width
For iPhone 4 and new generation iPod touch that have Retina display there is something that you should note. iPhone 4 width is
640 pixels that many developers don't count this width as a mobile browser width. If you add this below meta tag in your document problem will be solved
This meta tag will impact your images quality. If you want to fix that problem then you need to read about this here.
| ||||||||||||||||
|
2
|
Its hard to know without any markup but i'm guessing you should do something like:
http://www.stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries
| ||||
|