SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    validated code, layout messed up in ie 6.0

    Hi there, can someone help me figure out what I need to add to the css to fix the page in ie 6.0:
    <snip>url removed</url>

    Thanks!
    Last edited by Paul O'B; Dec 11, 2007 at 06:44.

  2. #2
    SitePoint Guru james_littler's Avatar
    Join Date
    May 2007
    Location
    Portsmouth, UK
    Posts
    775
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you provide a screen shot? it workes fine in ie7 anyway, just incase you haven't tested it in 7 yet

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,296
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    The problem (yet again ) is one of general housekeeping and supplying dimensions that make no sense.

    Your #wrapper is 770px wide

    #main which is nested inside has 40px padding thus reducing the available space to 730px.

    #main-photo sits inside #main and is 621px wide width 100px margin and 20px padding making a total of 741px

    So therefore you are trying to fit 741px of content inside a 730px space and something has to give because its impossible. When you ask for the impossible you get impossible results

    Ie tries to help by stretching #main to accommodate the larger content but results in breaking the layout. Other browsers ignore the content and just let it spill out without breaking anything else.The solution is to use the right size so it fits which can be done by reducing margins here:

    Code:
    #main #mainphoto{
        float: none;
        margin: 0 44px 20px;
        padding: 0 10px;
        border: 0 none;
        text-align: center;
    }
    Hope that helps
    Last edited by Paul O'B; Dec 11, 2007 at 06:44.

  4. #4
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mmhmm

    Thanks for your very clear explanation of the problem, Paul O'B! I see I need to brush up on my math skills! Thanks again!


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
  •