Results 1 to 2 of 2

Thread: CSS & XTHML : IE6 & 7 Bug

  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Unhappy CSS & XTHML : IE6 & 7 Bug

    Thanks for the quick reply, solved.
    Last edited by benz1ne; 13 Nov 2009 at 01:03 PM.

  2. #2
    Join Date
    Nov 2008
    Location
    Philadelphia, PA
    Posts
    204
    Hello Benz11ne and welcome to the wonderful world of Web Design!

    Just like you, I'm from a print design background (layout editor for newspapers) and I started in Web design last year.

    The problem with older versions of IE, as you discovered, is that they can't read CSS codes correctly.

    However, there is a way around it.

    You would need to put this code within <style>:

    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="iestyles.css" />
    <![endif]-->

    Basically, you have to create a different css file (in this case, iestyles.css) to fix the problems you are having. The <!--[if IE]> basically says that if someone is using IE, then the IE browser needs to use that special css file.

    Now, there are different <!--[if IE]> codes, such as <!--[if lt IE 7]>, which means that if the user is using IE 7 or less, then that browser should use that particular css file. If it's IE 8, then use the normal css file.

    Here are a few links that should help you out. Best of luck!


    http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx


    http://css-tricks.com/how-to-create-an-ie-only-stylesheet/


    http://www.webdevout.net/css-hacks
    While I'm not learning more about Web design, I write editorials and columns about politics and the news. My two blogs are at: whatburnsmybacon.com.

Similar Threads

  1. tableless css based page displays ok in IE7 not in IE6
    By sandra21 in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 24 Mar 2009, 08:02 AM
  2. Need quick help with CSS logo in IE6
    By geomatani in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 11 Mar 2009, 09:43 AM

Posting Permissions

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