HTML tables with firefox and IE nightmare

This is a discussion on HTML tables with firefox and IE nightmare within the Tech Board forums, part of the Community Boards category; at the address http://mrsako.gotdns.com/site/newindex.html this is how my page i first made was, in firefox it shows up fine, in ...

  1. #1
    They Call me Mister Sako
    Join Date
    Jul 2004
    Posts
    169

    HTML tables with firefox and IE nightmare

    at the address
    http://mrsako.gotdns.com/site/newindex.html
    this is how my page i first made was, in firefox it shows up fine, in IE it throws in extra lines and stuff the tables get thrown off

    http://mrsako.gotdns.com/newindex.html
    this is the fixed version of the site which the website shows up almost identical in firefox as well as IE (besides the whats my name.com text).

    i fixed the problem by on the table with the buttons i made that line ALLLL one line instead of properly indenting it like i would like to. so this tells me that IE takes all the spaces in the source file literally and trys to put them in the page, while firefox compensates for the idea that programmers want to use proper indenting (my theory)

    i know theres stuff like doctypes and stuff you can put on top of the page source to "force" certain behavoir. How can i make it so IE will take in extra spaces like firefox does?
    AIM: MisterSako | MSN: sakotheinsane@hotmail.com | E-mail: klinerr1@nc.rr.com
    The goal of computer science is to be lazy

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Both your links are broken.

    All browsers compress multiple spaces into one (there are some exceptions, like inside <pre> tags). That shouldn't matter. Maybe you have missing </td>s or something.

    Post your HTML code.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,255
    Alternatively, have the W3C (maintainers of the HTML spec) mull over your page. They'll instantly tell you what's wrong.

  4. #4
    They Call me Mister Sako
    Join Date
    Jul 2004
    Posts
    169
    i figured out the probem, i had my code formated like
    Code:
    <table>
      <tr>
         <td>
              stuff in square
         </td>
     </tr>
    </table>
    which created extra spaces i had to take out the proper formatting

    Code:
    <table>
      <tr><td>stuff in square</td></tr>
    </table>
    and the extra spaces went away (just for the reference of anyone else who finds this topic with the same problem)

    now the problem with extra spaces seems to of stopped even if i put in extra space like i had before.. very very very weird
    AIM: MisterSako | MSN: sakotheinsane@hotmail.com | E-mail: klinerr1@nc.rr.com
    The goal of computer science is to be lazy

  5. #5
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    what text editor were you using?
    were you using spaces or tabs?
    PHP and XML
    Let's talk about SAX

  6. #6
    They Call me Mister Sako
    Join Date
    Jul 2004
    Posts
    169
    i use ConTEXT, it has auto idention which may of been part of the problem
    AIM: MisterSako | MSN: sakotheinsane@hotmail.com | E-mail: klinerr1@nc.rr.com
    The goal of computer science is to be lazy

  7. #7
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    weird, give textpad a try and see what that does...I personally haven't had a problem with it.
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21