Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   HTML / XHTML / CSS (http://www.programmingforums.org/forum27.html)
-   -   CSS sheets (http://www.programmingforums.org/showthread.php?t=10706)

java_roshan Jul 13th, 2006 11:00 AM

CSS sheets
 
Is it better maintaining separate CSS files for particular rendering engines or is tweaking a single CSS file with those CDATA tags inside a page helpful.

Agent 47 Jul 13th, 2006 11:07 AM

Are you talking about 'hacking' your CSS to make things work
with Internet Explorer?

If so, you should be using conditionals to include seperate IE
stylesheets.

What does this have to do with CDATA tags?

java_roshan Jul 13th, 2006 11:17 AM

Quote:

Originally Posted by Agent 47
Are you talking about 'hacking' your CSS to make things work
with Internet Explorer?

Yes.

Quote:

Originally Posted by Agent 47
If so, you should be using conditionals to include seperate IE
stylesheets.

Now I get it.

Quote:

Originally Posted by Agent 47
What does this have to do with CDATA tags?

I saw this code at wikipedia,
:

<style type="text/css">/*<![CDATA[*/
@import "/w/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css&smaxage=2678400";
@import "/w/index.php?title=MediaWiki:Monobook.css&action=raw&ctype=text/css&smaxage=2678400";
@import "/w/index.php?title=-&action=raw&gen=css&maxage=2678400";
/*]]>*/</style>


And I am sorry, I prematurely, posted this question.

Agent 47 Jul 13th, 2006 1:14 PM

The CDATA tags are there simply to stop the XML parser
from trying to parse your CSS/JS/Whatever...


All times are GMT -5. The time now is 12:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC