Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ie conditional comment not working for xhtml file

 
ashley Jug
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your browser running in IE8 mode or is it rendering as IE7 or compat mode?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic