Forum Moderators: open

Message Too Old, No Replies

Normalizing page view

basic how to format

         

greenviolet

1:32 am on Feb 22, 2006 (gmt 0)

10+ Year Member



Hi,

How do i code so that the content of the page stays arranged when I resize the browser page? Understand? Totally related: how do I make it so the full page shows in the browser when the page first pops up? The way I have it now, scrolling is necessary.
Thanks!

Arkette

9:31 am on Feb 22, 2006 (gmt 0)

10+ Year Member



For the first part of your question try this.
Place all your content in a div like this...
<div id="content">
your content
</div>
and then in your style sheet add something like the following:
#content {
width: 780px;
height: 100%;
}
For the second part of your question, if I understand it correctly then the following javascript snippet should suffice.

<script language="javascript">
function Init(){
self.resizeTo(780,screen.availHeight)
}
</script>
you will need to call this with the onload event statement from your body tag.

DrDoc

9:35 am on Feb 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [WebmasterWorld.com], both of you!

When you say that scrolling is required, how big is the page right now? And, at which screen resolution is scrolling required?

Are you talking about a proportional zoom of the page when the browser window is resized?

greenviolet

12:16 am on Feb 27, 2006 (gmt 0)

10+ Year Member



Thanks, for the help! The <div> coding makes sense and was helpful, but, the other feed-back is sadly Not making sense. I'm not sure where to put that code.

Other response person- I was given a jpg and asked to use this image for the opening page of the site. It was 953x1252 3.41 M. I used photoshop to make it web ready. It's now 352k, and fits ok width wise into the window, but, needs to be scrolled to be fully seen. The other thing I tried make it look fuzzy and disporportional. The jpg is a flyer, so, there are art and text which should remain readable.

I hope this is clearer, and even more, that you can give me the magic fix!
Thanks, again.