Mahmoud Fayez
Mahmoud Fayez

Reputation: 3459

HTML5 fixed size page

I want to make an HTML page that fit on any portable device and fill the screen and dynamically sizes its content. Also it should work on iPhone and Android. And the users should not be able to resize the page.

I have tried these ideas:

I hope you have a good idea to help me out.

Upvotes: 0

Views: 451

Answers (1)

dsgriffin
dsgriffin

Reputation: 68586

If you have already tried using percentages and are unhappy with the results, I recommend you look into using CSS Media Queries. By determining the resolution your website is being viewed in, you can optimise it for each device specifically.

If you want to disable zooming for your website in mobile devices, make sure to add this:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

Upvotes: 1

Related Questions