Results 1 to 4 of 4

Thread: Conditional Comments

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2014
    Posts
    54

    Angry Conditional Comments

    Hi.
    How can I use "Conditional Comments" to have my web page in a good shape in IE?
    I tried every form of "Conditional Comments" but none of them worked.
    One of them on W3S:
    HTML Code:
    <!--[if IE 11]>
        <p>IE</p>
    <![endif]-->
    I have IE 11.
    Thanks a lot.

  2. #2
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    284

    Re: Conditional Comments

    Hi there qazwsx123,

    IE11 does not implement comments, other than to not display the content between <!-- and -->.

    This means that this....
    Code:
    
    <!--[if IE 11]>
        <p>IE</p>
    <![endif]-->
    ...is meaningless in IE11.

    Just write good valid code and all modern browsers - ( can't speak for "Edge" ) - will render it OK.


    ~ the original bald headed old fart ~

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2014
    Posts
    54

    Re: Conditional Comments

    Thanks a lot coothead.

  4. #4
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    284

    Re: Conditional Comments


    No problem, you're very welcome.


    ~ the original bald headed old fart ~

Posting Permissions

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



Click Here to Expand Forum to Full Width