Simple problem, advice please.

Discussion in 'CSS' started by Funk-woo10, Sep 26, 2008.

  1. #1
    Hi all,

    The footer on my games site keeps riding up on the index page.

    My head is spinning, do you have any advice ?

    Thanks.

    P.s - SITE IS In SIG (Flash games)
     
    Funk-woo10, Sep 26, 2008 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Seems the left float isn't getting cleared. You have clear: both on the footer so I'm thinking there's an unclosed tag somewhere above it messing everything up.

    I tried to send the url through th validator but since you wrote in XHTML and didn't properly comment out your scripts (which shouldn't be sitting in the HTML anyway, but that's another ball of wax) so it sees all the scripts as HTML and thinks it's wrong... I scrolled down a ways and there's something with an H3 in the wrong place so maybe there's an unclosed tag somewhere there?

    I comment out scripts the sooper dooper way:
    <!--//--><![CDATA[//><!--
    scripty stuff...
    //--><!]]>


    That's a bit overboard, but works even if this were ever turned into real XHTML (sent as application xhtml+xml)

    This is because while scripts are just scripts in HTML, they are considered CDATA (content) to XHTML.

    anyway, after commenting out your scripts and turning all the & in your HTML to & amp;s , go through the validator and see if you can find an unclosed tag.

    If everything's good and still a problem then come back here. This has to be fixed first anyway.

    BTW I saw a div called "firefoxhack", which doesn't sound too good.
     
    Stomme poes, Sep 26, 2008 IP
  3. Funk-woo10

    Funk-woo10 Peon

    Messages:
    1,109
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thats all top advice. Thankfully i didnt write the script. Its so badly done its doing my head in.

    Thanks.
     
    Funk-woo10, Sep 26, 2008 IP