Results 1 to 2 of 2

Thread: Resizing window - position of web content affected

  1. #1
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Resizing window - position of web content affected

    Hi everyone,

    I'd like to ask, how do i prevent content of a website from being out of alignment when a viewer resizing the window?

    E.g. When i reduce the size of the window, content of website is not in the right position.

    What should i do? Can anyone give me an example to avoid this kind of thing from happen?

    Thanks for your fast reply/feedback/answer/example.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,167
    Thanks
    44
    Thanked 3,240 Times in 3,201 Posts
    Blog Entries
    12

    Default

    It really depends upon the situation, and I'm pretty sure you will get various answers. One approach is to have a container division set to the width that you want the window to be. Put all of your content in there. If the window isn't wide enough, instead of wrapping, there will be a horizontal scrollbar.

    That's the easiest, but perhaps one of the least desirable. Another approach is just to design the page so that it doesn't matter so much. But this can be a bit tricky and would depend to an extent upon your content and how you might be willing to arrange it on the page. For some templates that may be adaptable see:

    http://www.dynamicdrive.com/style/layouts/

    especially:

    http://www.dynamicdrive.com/style/layouts/category/C13/

    Also, there are many others available around the web.
    - 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
  •