Help needed in optimzing a webpage for different resolutions

Discussion in 'HTML & Website Design' started by Freewebspace, Apr 30, 2007.

  1. #1
    Home page of www.bigoole.com looks good when seen in 1024X768 resolution


    but in 800X600 resolution it is titled towards right


    I want to optimize it for both resolutions

    Here is the code


    Can anybody tweak this code so it looks good in both resolutions!
     
    Freewebspace, Apr 30, 2007 IP
  2. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why is it laid out using absolute positioning? You could easily give the div(s) a set width and set margin-left and margin-right to auto.
     
    Gordaen, Apr 30, 2007 IP
  3. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #3
    its not about margin its about positioning! fo The Search!

    what should I include it in the code
     
    Freewebspace, Apr 30, 2007 IP
  4. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Perhaps you should read up on the box model. To see an example of what I was referring to, try something like this:

    <div style="width: 50%; margin-left: auto; margin-right: auto;">Example!</div>

    There's no reason to use absolute positioning. You could probably just use "text-align: center" and have better results than the absolute positioning.
     
    Gordaen, Apr 30, 2007 IP
    kk5st likes this.
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Modern web layout involves the "position" property only rarely. Beginners should not even be shown "position: absolute" for all the trouble it gets them into.

    The vast majority of layout issues are solved with intelligent use of floats and margins.

    Start by removing all style attributes from every element. Whoever taught you that, doesn't know what he's doing.

    You need a proper and complete DTD so that IE will follow the rules. Some semantic markup wouldn't hurt either. A div is a grouping element. You still need to properly tag the elements within the group.

    Get your html cleaned up, and it will be trivial to get the layout fixed.

    cheers,

    gary
     
    kk5st, May 1, 2007 IP
  6. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #6
    Could any body help me with the Full code as I do want to messup the page
     
    Freewebspace, May 1, 2007 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    That's what we're doing. Make a working copy of the page, and load it to a different directory. Make your changes to the working copy. When it's right, you can move it to replace the existing page.

    Let us know the new url when you've set it up and have made the suggested changes.

    cheers,

    gary
     
    kk5st, May 1, 2007 IP