This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Don't get me started about those stupid light bulbs.
 
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).