This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes ie conditional comment not working for xhtml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ie conditional comment not working for xhtml file" Watch "ie conditional comment not working for xhtml file" New topic
Author

ie conditional comment not working for xhtml file

ashley Jug
Ranch Hand

Joined: Sep 02, 2011
Posts: 60
Hello,

I trying to use an xhtml file to load my css but nothing is loaded.

This is my code:
<!--[if IE 8]> <link rel="stylesheet" type="text/css" href="${facesContext.externalContext.requestContextPath}/css/lkhtJsf.css" /> <![endif]-->

I am using ie8 browser and the page is displayed with no css.

Any suggestion please.

When i remove the condition it works fine.

Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Is your browser running in IE8 mode or is it rendering as IE7 or compat mode?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ie conditional comment not working for xhtml file