comment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • philleep
    New Member
    • Mar 2007
    • 74

    #1

    comment

    hi,

    i had a comment at the top of my html file like this:

    Code:
    <!-- Comment here -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="style/sgstyle.css" rel="stylesheet" type="text/css" media="screen" />
    <title>Webpage...</title>
    </head>
    
    <body>
    
    <div id="container">
    <div id="header">
    and it totally screwed my page. can anyone tell me this is?

    cheer
    philleep
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    take the comment out or move it. Obviously it can't go there.

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      I assume this is in IE? If you put anything before the doctype in IE, it will go into quirks mode. As stated, just remove that line.

      Comment

      • philleep
        New Member
        • Mar 2007
        • 74

        #4
        i guess i thought a comment could go anywhere...
        and yes it was IE - firefox wouldnt mess up like that...
        cheer
        philleep

        Comment

        Working...