SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with Calling Alt. Style Sheet for IE

    Hello all,

    This is my first post. I'm crossing my fingers that the clearly knowledgeable members here cna help me out (I've lurked a bit).

    It's the typical stuff: site displaying fine in Firefox and IE7 but not IE6.

    I've tried to call an alternate style sheet for IE6 browsers, but it seems that it just simply isn't working. IE6 just ignores the alternate and reads the main sheet.

    Here's my code:

    Code:
    <!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" lang="en" xml:lang="en">
    
    <head>
    
    <!-- Insert page title info here -->
    
    	<title>Page Title</title>
    <!-- End page title info -->
    
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<link rel="stylesheet" type="text/css" href="global.css" media="screen" />
    	<!--[if !IE]>-->
    	<link rel="stylesheet" type="text/css" href="iesix.css" media="screen" />
    	<!--<![endif]-->
    	<meta name="description" content="This website details some stuff.">
    	<meta name="keywords" content="some keywords">
    </head>
    I suspect the problem might be something in the DOCTYPE code.

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    East of Ottawa, ON
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    remove the ! in front of IE

    http://www.quirksmode.org/css/condcom.html

  3. #3
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very weird, but it still doesn't work.

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,862
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="iesix.css" media="screen" />
    <![endif]-->
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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