Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
IE style sheet questions --- Why does IE chose only to read certain parts?
Old 08-25-2009, 12:49 PM IE style sheet questions --- Why does IE chose only to read certain parts?
Average Talker

Posts: 17
Location: Vancouver, Bc
Trades: 0
I am new to the whole web design world and as much as I must admit I am really enjoying building my site I am having the odd frustrating issue...mostly with I.E.

I fixed most of the IE issues with a series of separate IE style sheets, the code as an example is:

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="styles/iestyles.css" />
<![endif]--> The problem I have is that IE chooses only to read certain parts of the IE specific style sheet and seems to at it's own choosing take certain aspects of the style sheets from the non IE style sheets.

This has become a real pain with shadowing pictures and certain text align issues. My question is does anybody know the reasons for this and a possible fix. This is a real issue for me as over 80% of my users seem to be using IE.

My website www.flightserviceaviation.com is still a work in progress. Thanks for taking the time to respond.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
level510 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-25-2009, 03:35 PM Re: IE style sheet questions --- Why does IE chose only to read certain parts?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
IE chooses only to read certain parts of the IE specific style sheet and seems to at it's own choosing take certain aspects of the style sheets from the non IE style sheets.
No it doesn't. IE reads what you give it.

You have this in your code:

Code:
<!--[if IE]>
    <link rel="stylesheet" type="text/css" href="styles/iestyles.css" />
<![endif]--> 
<link rel="stylesheet" type="text/css" href="styles/base.css" media="all"/>
<!--[if IE]>
    <link rel="stylesheet" type="text/css" href="styles/iestyles.css" />
<![endif]-->
Your IE stylesheets MUST come AFTER your main stylesheet. Your IE-specific stylesheets must also ONLY contain those rules necessary to combat IE's bugs and other vagaries. You appear to have duplicated most of your base stylesheet and that's not what you should be doing.

You also need to differentiate for the VERSION of IE - IE8 will render most like Firefox, whereas other problems exist in IE6 and 7. If you use just ONE IE stylesheet, ALL versions of IE will read it and then you have all kinds of issues.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE style sheet questions --- Why does IE chose only to read certain parts?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30263 seconds with 12 queries