Problem with CSS in IE; XHTML doesn't validate

Discussion in 'CSS' started by ImaginaryOrdinary, Dec 22, 2007.

  1. #1
    Hi,

    I am working on a website for a local folk group here in Nashville, and I am having a wee bit of trouble with my CSS.

    The link is http://stagolee.wecanseeformiles.com/

    It's perfect CSS according to the W3C, however, if you open the site in IE, and goto a page like shows.php, the footer will be all whack. I'm sure it's a simple fix, but I am still learning.

    I have one more problem to, or a few tiny ones. My XHTML doesn't validate. A bunch of little parsing errors are popping up: http://validator.w3.org/check?uri=http%3A%2F%2Fstagolee.wecanseeformiles.com&charset=%28detect+automatically%29&doctype=Inline&group=0

    What am I doing wrong here?

    Thanks!
     
    ImaginaryOrdinary, Dec 22, 2007 IP
  2. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #2
    Well, a simple fix that I can think of is this:


    Add the following in your CSS:
    
    
    .clear { clear:both; }
    
    
    HTML:
    And then add this right before the footer:
    
    
    <div class="clear"></div>
    
    
    HTML:
    That will fix the problem.

    I will look at your xhtml now, but no promises, since Im no good with validation :p
     
    Hades, Dec 22, 2007 IP
  3. ImaginaryOrdinary

    ImaginaryOrdinary Guest

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Haha, that was easy. Thanks a lot!
     
    ImaginaryOrdinary, Dec 23, 2007 IP
  4. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #4
    Ok, I got your page to validate. You have to add a few things.

    Between the <head> </head> tags, add the following. It fits well right before your <style> tag:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    Code (markup):
    In .leftmain in your css add the following, it fixes the float drop problem in IE6:

    display:inline;
    Code (markup):
    And finally add the following to the end of your document:

    </div></body></html>
    Code (markup):
     
    Hades, Dec 23, 2007 IP
  5. ImaginaryOrdinary

    ImaginaryOrdinary Guest

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you, however, for me, it is still saying this:
    I really don't understand why.
     
    ImaginaryOrdinary, Dec 23, 2007 IP
  6. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #6
    Hades, Dec 23, 2007 IP
  7. ImaginaryOrdinary

    ImaginaryOrdinary Guest

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7

    LOL, yeah. My bad.

    My first valid site ever! Haha. Thanks to you!
     
    ImaginaryOrdinary, Dec 23, 2007 IP
  8. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #8
    No problem. Glad to help.
     
    Hades, Dec 23, 2007 IP