Fork me on GitHub

Can someone give me a hand with very basic HTML?  Bottom

  • ok, I'm working on a theme and it's turned out fine in Firefox but breaks when using IE6.

    Here's how it should look (as seen in firefox)
    http://www.yourwords.ca/images/firefox.jpg

    and here's it broken in IE6
    http://www.yourwords.ca/images/ie6.jpg


    and here's the code:

    http://www.yourwords.ca/menu.txt

    Can anyone help? I just can't figure out why IE is sticking in those dividers between graphics.
  • You have some very sloppy code there. For starters, try removing all the cellpadding, cellspacing and other slop from the tr and td tags. It doesn't belong there and, off-hand, I can only guess that it might make IE freak out a bit. Those generally only belong in table tags.
  • warrick

    You have some very sloppy code there. For starters, try removing all the cellpadding, cellspacing and other slop from the tr and td tags. It doesn't belong there and, off-hand, I can only guess that it might make IE freak out a bit. Those generally only belong in table tags.


    I only added that in a last-ditch effort to stop the spacing that was occuring. The error has nothing to do with that, unfortunately.
  • Other tip for IE:

    put all TD lines together, without line separations, if you have a line feed, IE take it as a BR,
    & don't put any separation between TR
    ex:

    Code

    <TR BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
    <TD BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%> <IMG SRC="images/four.gif" BORDER=0 ALT="" USEMAP="#four_Map"><MAP NAME="four_Map"><AREA SHAPE="rect" ALT="submit your work" COORDS="11,5,136,27" HREF="submit.html" TARGET="main"></MAP></TD>
    </TR>
    <TR BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
    <TD BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%> <IMG SRC="images/five.gif" BORDER=0 ALT="" USEMAP="#five_Map"><MAP NAME="five_Map"><AREA SHAPE="rect" ALT="volunteer with us" COORDS="18,10,123,39" HREF="volunteer.html" TARGET="main"></MAP></TD>
    </TR>





    edited by: gerkynet, Sep 26, 2006 - 01:19 AM
  • gerkynet

    Other tip for IE:

    put all TD lines together, without line separations, if you have a line feed, IE take it as a BR,
    & don't put any separation between TR
    ex:

    Code

    <TR BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
    <TD BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%> <IMG SRC="images/four.gif" BORDER=0 ALT="" USEMAP="#four_Map"><MAP NAME="four_Map"><AREA SHAPE="rect" ALT="submit your work" COORDS="11,5,136,27" HREF="submit.html" TARGET="main"></MAP></TD>
    </TR>
    <TR BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
    <TD BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%> <IMG SRC="images/five.gif" BORDER=0 ALT="" USEMAP="#five_Map"><MAP NAME="five_Map"><AREA SHAPE="rect" ALT="volunteer with us" COORDS="18,10,123,39" HREF="volunteer.html" TARGET="main"></MAP></TD>
    </TR>

    edited by: gerkynet, Sep 26, 2006 - 01:19 AM



    wow, that actually worked. I've been writing HTML for almost 10 years now and never run into that. Thanks so much mate.
  • yes, me too, and allways surprise to me how IE work inside, what incoherent is, & how it made spend time to web developers (normal thing on msoft products). icon_biggrin



  • You may also want to improve the HTML by quoting parameters correctly:

    Code

    <td border="0" cellpadding="0" cellspacing="0" width="100%">


    tr does not accept a width parameter...

    --
    "He is not dangerous, he just wants to play...."
  • Landseer

    You may also want to improve the HTML by quoting parameters correctly:

    Code

    <td border="0" cellpadding="0" cellspacing="0" width="100%">


    tr does not accept a width parameter...


    And even better not using a table for something that, clearly, isn't a table....

    -Mark

    --
    Visit My homepage and Zikula themes.
  • You could also enclosed the table with "strip" tags to remove the whitespace, if using a Xanthia theme.

    Code

    <!--[strip]-->
    ... your code ...
    <!--[/strip]-->

This list is based on users active over the last 60 minutes.