Results 1 to 2 of 2

Thread: How to make site fit to page vertically

  1. #1
    Join Date
    Feb 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to make site fit to page vertically

    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

    This is my site that needs the code.
    Link

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •