Log in

View Full Version : How to make site fit to page vertically



HSchoyt
02-19-2006, 04:39 AM
I want to make my site fit in to one browser window. I don't want to scroll at all. I know there is code that make the information fit horizontally in any browser window, but is there code to make the vertical height 100% of the browser window? Please help!

This site is an example of what I'm looking for...
Link (http://www.solsticeimages.com/album_1.htm)

This is my site that needs the code.
Link (http://www.hilaryeschoytphoto.com)

jscheuer1
02-19-2006, 07:56 AM
At 800x600, the example you give has both horizontal and vertical scroll bars. There is no way to fit content to a window if that window isn't big enough to hold it.

Your page is actually the better of the two from that perspective because, as it becomes more narrow when viewed in a smaller window, it needs only a vertical scroll bar.

As long as your content will fit in a certain area say - 700x550, you could put it in a division of those dimensions and it will not need any scroll bars until the window becomes smaller than that.

This is a bad idea though. It is best to allow vertical scrolling and have your page flow (as yours now does) throughout the available horizontal space, as there is no way to predict the size of the user's window.