weird issue with safari

Discussion in 'Web Design and Development (archive)' started by mrjamin, Mar 4, 2004.

  1. mrjamin macrumors 65816


    Feb 6, 2003
    Ok, here's the dealio:

    The site's one big table, all heights and widths are defined in the stylesheet, apart from the width of the central column which is set with a spacer GIF. If you look at the "hosting" and "introduction" pages, there's a weird gap that seems to be coming from nowhere. I have no idea why. The "contact" page is fine!

    I don't get the issue in any other browser (IE5.5 (win), IE6 (win), gecko based browsers, IE (mac), or opera).

    Thanks in advance chaps, you haven't failed me yet!

  2. Makosuke macrumors 603

    Aug 15, 2001
    The Cool Part of CA, USA
    Well, to start with, the site doesn't actually quite validate as XHTML1.0; you have a bunch of duplicate IDs (did you mean to be using classes?), a few unescaped & symbols, and a missing and duplicate alt tag (looks like you put the "server" alt on the "control panel" image on the Hosting page).

    But none of those things are major.

    What it looks like Safari is doing is expanding the space reserved for the center box of the page to accomodate the floating images contained within it, but is correctly sizing the scrollable area inside, leaving that gap at the bottom.

    If you try deleting the final image (the server one, that pushes it over the edge, so to speak) it draws fine, and if you add more floating images below, the problem gets progressively worse. Likewise, if you turn the float off on that final image, it draws properly.

    I'm not positive that this is wrong, since I'm not familiar with what the technically accepted behavior when determining the sizes of areas reserved for objects that are offscreen, but this seems to be a rendering bug in Safari.

    Unless somebody here can chime in with information confirming that this is one accepted behavior, you should probably file a bug report with Apple, and maybe Hyatt will be able to patch that issue up.

    Incidentally, in testing this I noticed that if you tell Camino to save the full source tree, it does some cleanup on the HTML; it deleted extra alt tags and removed all the short-form XHTML closing slashes. Weird.
  3. mnkeybsness macrumors 68030


    Jun 25, 2001
    Moneyapolis, Minnesota
    we need to learn you some advanced CSS positioning!

    it would get rid of all of those nasty tables which always have problems with different browsers.
  4. Makosuke macrumors 603

    Aug 15, 2001
    The Cool Part of CA, USA
    I was resisting making that comment, since tables or no, there's something odd going on there and it superficially seems to be Safari's fault.

    That said, I don't have the violent reaction to tables that a lot of people seem to (face it, they're useful sometimes, and as much as I hate to say it, just better at doing some layout that divs were never really intended to cover), but this site does seem to be asking for trouble with the way its designed, and is a prime candidate for some fancier positioning mojo.

Share This Page