Hi I'm Trying to set a Web Page to be able to View @ 480 and 272 , is so people can view it on PSP , Could you please show me some code on how to do this , I'm fairly new to HTML & CSS and could really use the help .........

effpeetee

02-16-2008, 04:20 PM

You can set the height and width on your body and html div's but you cannot influence the resolution set by the person viewing. They in turn are only able to use the resolution settings of their monitors.

Why do you need to do this?

Frank

Gilligan

02-16-2008, 04:29 PM

<html>

<head>
<style type="text/css">body {width:480px;}</style>
</head>

<body>

Content Here

</body>

</html>

The body will this fix itself to 480 pixels wide.

You can't fix the height unless you put the content of the page inside one div, but making it a set height won't allow much room for content.

<html>

<head>
<style type="text/css">body {width:480px;}

#Gwhole {width:480px; height:272px;}</style>
</head>

<body>

<div id="Gwhole">
Content Here</div>

</body>

</html>

I'm not exactly sure of what you want. If you want a page viewable on the psp without scrolling left / right, but want users to scroll down/up, then use code 1.

If you want a page viewable on the psp without scrolling AT ALL. Then use code 2.

BUT, if you want people to view it from the psp AND the computer with the sizes increasing for computer, and then decreasing for psp. then you cannot. Sorry

VIPStephan

02-16-2008, 04:33 PM

It would be good if you showed us what you have so far.

Now, I suppose a PSP goes through as handheld device, and hence it should render stylesheets declared as such. You can write different stylesheets for different devices and apply different sizes in each: