toad78 — 2012-11-20T14:46:53-05:00 — #1
Can someone review this site and tell me why this site is not fitting full screen width on mobile devices? I posted in the CSS forum because I suspect that my design code is conflicting with a plugin I'm using the detect mobile devices and resize the site automatically.
computerbarry — 2012-11-20T17:00:16-05:00 — #2
You need to remove those fixed containers inside your 100% width wrappers, nothing has been styled for smartphone.
I mention something very similar in another post, read post #2
Let us know if you need further information.
toad78 — 2012-11-20T17:21:30-05:00 — #3
So, in brief, I need to create a separate stylesheet for some basic fixes then?
computerbarry — 2012-11-20T17:33:12-05:00 — #4
general speaking yes, or add some media queries inside your main css.
I find it much easier and more organized to create separate css for smartphone/tablet.
A quick fix is to just override the main desktop styles, you'll also need to make your images responsive so they adjust and fit your new container dimensions.
You would end up with something like the below depending on how far you'd like to take this:
<link rel="stylesheet" media="only screen and (min-width: 480px)" href="480.css">
<link rel="stylesheet" media="only screen and (min-width: 600px)" href="600.css">
<link rel="stylesheet" media="only screen and (min-width: 768px)" href="768.css">
<link rel="stylesheet" media="only screen and (min-width: 992px)" href="992.css">
Cool links to bookmark:
http://mediaqueri.es/ - Check out all the sites listed and have a look at their code.
toad78 — 2012-11-20T19:52:53-05:00 — #5
Good points. I'll see what I can make sense of. I may need help!