- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
If you shrink the browser to 480px or less, you will see the mobile design displays fine. However, on an actual iPhone (in portrait), it displays with the content area being much too wide.
Here’s a picture of it on an iPhone:
http://img703.imageshack.us/img703/1944/photoik.png
The site’s only responsive part is its changing for the iPhone size.
It would be much easier and better to just have a separate site just for iPhone: basically, if the screen is a certain size or smaller, let a box be shown that lets people go to that site, something like this:
...
With the CSS just like this:
#send-to-mobile {
background: white;
box-shadow: 0 0 20px black;
display: none;
padding: 50px;
}
@media screen and (max-width: 480px) {
#send-to-mobile {
display: block;
}
}
Then by creating the mobile site separately, you’re using a smaller stylesheet, and you’re making a much more optimised version for the iPhone, as well as being free for designing the main site specifically for desktop.
Might have something to do with retina?
Do you have this meta tag in the head of your page?
If it isn’t there, it will cause problems like you are having.