/    Sign up×
Community /Pin to ProfileBookmark

Mobile Compatible Site

I have a mobile version of my site which is all placed inside a div tag that has height:auto and width:300px but when I view it on a mobile device it shows up all zoomed out which obviously isn’t how it’s supposed to look. How can I get it to automatically fill the screen?

Thanks
thomas

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@cbVisionJul 18.2011 — Try adding this good sir:

<meta name="viewport" content="width=device-width; initial-scale=1.0">
Copy linkTweet thisAlerts:
@Major_PayneJul 19.2011 — Might help:

Mobile Website:

Learn the Mobile Web: http://learnthemobileweb.com/2009/07/mobile-meta-tags/

10 Ways the Mobile Web is Different: http://www.elated.com/articles/10-ways-the-mobile-web-is-different/

Redesigning a Site For Mobile: What's Involved?: http://www.elated.com/articles/redesigning-a-site-for-mobile-whats-involved/
Copy linkTweet thisAlerts:
@TomTom100authorJul 19.2011 — Thank you I have now sorted the problem!! ?

I you want to see how you've helped go to www.testing000.tk/mob.html on a mobile device.


Thanks

Thomas
Copy linkTweet thisAlerts:
@Major_PayneJul 19.2011 — Not sure who you're thanking, but you're welcome from both of us. ?
Copy linkTweet thisAlerts:
@TomTom100authorJul 19.2011 — Both of you were helpful!!

Thanks

Again ?
×

Success!

Help @TomTom100 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...