Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    New Coder
    Join Date
    Mar 2011
    Posts
    21
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Quirky mode seems to be working for me better :S. Here's a picture of my site when I use a doctype: http://i986.photobucket.com/albums/a...i94/error1.jpg.

    I just don't understand it @_@ the article you gave me only had small differences between strict and quirky. This is a rather large difference lol.

    Relevant code:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    
      <head>
    
        <link rel="stylesheet" type="text/css" href="stylesheet.css">
    
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <meta name="description" content="AV Avenue is a K-12 Classroom Technology Specialists company. We provide audio/video equipment sales, systems installations and service of existing systems.">
        <meta name="keywords" content="av avenue, audio, video, audio visual, classroom, education, installation, smartboard, k-12">
    
        <title>AV Avenue</title>
    
      </head>

  2. #17
    New Coder
    Join Date
    Mar 2011
    Posts
    21
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Figured it out . Apparently, I validated my code before I put in a doctype which caused some validation errors when I put in the doctype (like <img /> instead of <img>). Also, a lot of my css was bad which was causing another large part of the problem. Thanks everyone for the links to the doctypes though, I've learned a lot .

  3. #18
    Regular Coder
    Join Date
    Apr 2011
    Posts
    286
    Thanks
    2
    Thanked 39 Times in 39 Posts
    Quote Originally Posted by SB65 View Post
    In the absence of a doctype IE will display in "quirks mode" - here's an explanation.
    Thanks, I forgot the mode it defaulted to, I just remember to always use one.

  4. #19
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Try using the html 4.01 doctype. I validated with your code and this doctype and returned no errors in validation.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    validation errors when I put in the doctype (like <img /> instead of <img>).
    Yes depending on which doctype and whether its strict or transitional, tags have to be closed in certain ways. Which is why I suggested, with your current code, that you use html4.01.

    You shouldnt say quirks mode works for me. lol You should ALWAYS use a valid doctype from the start.
    Teed

  5. #20
    New Coder
    Join Date
    Mar 2011
    Posts
    21
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Yes, everything is working now. Earlier today I validated my html and css and it fixed my IE problem. Thanks again to everyone who helped me out with this . Greatly appreciated.

  6. #21
    New Coder
    Join Date
    Apr 2011
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post
    Shiny...also you can check your website on various browsers through browsershots.org. It will show how your website will be on several browsers. This too helps you to fix your code.

  7. Users who have thanked hotelscyprus for this post:

    shinydarkrai94 (04-20-2011)


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •