*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
conditional ie 6 test not working
Different Attribute Value For IE And Firefox
Cross-browser compatibility
Primefaces datatable CSS?
project file structure for web application (war).