PDA

View Full Version : [PRETTY URGENT] +REP



Pawf
30-06-2011, 04:40 PM
Hey, is there any way of completely limiting the width that a page can be?

I have

body{
max-width: 640px;
}

but I still get this on larger screens.

I added the peachy colour to show you where I want the layout to stop. So confused :S

http://i52.tinypic.com/f3cky8.png

Pawf
30-06-2011, 05:29 PM
Sorry for the double post but I have solved it myself! I had checked Google for about an hour before posting but with no luck. Carried on searching though and found out how. For all those that do not know and wish to...

Put this in the head tag.


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

Fiendly
01-07-2011, 12:31 AM
Is this for phone browsers?

Pawf
01-07-2011, 10:45 AM
Yes it is :)

Want to hide these adverts? Register an account for free!