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.
Results 1 to 4 of 4
  1. #1
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts

    Problem with EmulateIE7

    Hi,

    As you can see from my validation, there is some issue with my EmulateIE7 code, maybe its in the wrong place?

    http://validator.w3.org/check?uri=ht...idator%2F1.606

    PHP Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <
    html lang="en">
    <
    head>
    <
    title>The Minifig Times for all your Lego News</title>

    <
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <
    meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <
    meta name="description" content="A Lego news blog providing an insight into the crazy world of deranged Legomen otherwise known as minifigs.">
    <
    meta name="abstract" content="The Minifig Times provides Lego news from the town, city, castle, pirates, train, space, technic and western themes.">
    <
    meta name="robots" content="index,follow">
    <
    meta name="googlebot" content="index,follow">
    <
    meta name="Content-Script-Type" content="text/javascript">
    <
    meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <
    link rel="shortcut icon" href="http://legolandtimes.bravehost.com/lego-icon.ico">
    <
    link rel="stylesheet" type="text/css" href="default.css">

    <
    style type="text/css"> <!--#include file="insert-menu-css.ins"--> </style>
    <style type="text/css"> .ltrack font-family"calibri"font-size10pt display:blockmargin-right:260px; } </style>

    </
    head>

    <
    body

  • #2
    Regular Coder
    Join Date
    Nov 2006
    Posts
    247
    Thanks
    13
    Thanked 26 Times in 24 Posts
    Well, from what I can see and what the validation is saying, you're using XHTML ruling in an HTML strict document. I can't test it, but you should be able to fix it by simply getting rid of the closing bit at the end of the tag.

    Code:
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    As for the other errors, in HTML 4.01, "width" attributes were depricated and CSS should be used instead. The TABLE one is pretty obvious.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello Partizan,
    The validator is telling you exactly what Majoricle said -
    The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
    ...IE7"> instead of ID7" />
    Unless you want to change your DocType.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    Partizan (02-16-2009)

  • #4
    Regular Coder Partizan's Avatar
    Join Date
    Dec 2008
    Location
    Legoland and Ireland
    Posts
    139
    Thanks
    74
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Majoracle View Post

    As for the other errors, in HTML 4.01, "width" attributes were depricated and CSS should be used instead. The TABLE one is pretty obvious.
    Oops sorry, yea table one I missed.

    Thanks for the feedback guys.

    Is this how I can specify width in CSS?
    PHP Code:
    .width-teams {
    width40em ;
    }

    .
    width-table {
    width5em ;
    }

    .
    width-points {
    width5em ;



  •  

    Posting Permissions

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