SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Oct 2004
    Location
    Newport Beach
    Posts
    1,761
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chrome Handling Divs Differently than FF/IE

    This is a first for me. While IE typically disagrees with Firefox and Chrome, this time I can't figure out why Chrome doesn't agree with Firefox/IE.

    Here is a sample page:

    http://www.traileraddict.com/tags/al...rland/moreinfo

    Works fine in IE7 and IE8 and FF. But Chrome absolutely kills it.

    Any suggestions?

    Thx
    Ryan
    Upcoming Movies - Movie News. Updated Daily.
    Movie Trailers - Awesome trailer site. Nuff said.

  2. #2
    SitePoint Addict fattyjules's Avatar
    Join Date
    Dec 2005
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Safari hates it too. Must be a webkit thing.

    There's a lot of cruft in the code that makes it harder to diagnose;

    - CSS in the <head>. Not wrong, but confusing.
    - Lots of inline CSS styles.
    - The <center> tag immediately after the <body> tag. Whatever it's doing there, you don't need it. You should do all your positioning with CSS.
    - Javascript that writes invalid XHTML (line 720)
    - Using <br>s to create space (line 182). Again, use CSS to create spaces between elements.

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,726
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Hi, I strongly recommend before we even start debugging that you validate your page. You have over 200 errors and some of htem are missing tags. Don't be scared though, fixing one error often fixes a whole bunch so hop to it
    CSS too
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    SitePoint Wizard
    Join Date
    Oct 2004
    Location
    Newport Beach
    Posts
    1,761
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Turned out it was my PHP bugging out and bad response codes and ended up echoing out open DIVs.

    Eesh. Thanks for finding that coding error!

    And I will work to improve the validation.

    Cheers
    Ryan
    Upcoming Movies - Movie News. Updated Daily.
    Movie Trailers - Awesome trailer site. Nuff said.

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,726
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Always remember to validate before asking a question here to avoid silly mishaps like these .

    You're welcome.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


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
  •