Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8669017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:21:44+00:00 2026-06-12T18:21:44+00:00

I have a CSS quandary. If I do this: <!–[if gte IE 8]> <link

  • 0

I have a CSS quandary.

If I do this:

<!--[if gte IE 8]> <link href="/ELS_Soulard_Project-web/css/soulard_base_ie_butchery.css" rel="stylesheet" type="text/css" media="screen, projection" /> <![endif]-->

That line of code shows up across the top of IE 9 and the css file that gets the IE fonts under control and provides background gradient isn’t read. But… the page looks great in Firefox and Chrome.

If I change the statements to:

<!--[if gte IE 8]><!--> blah blah blah <!--<![endif]-->

variety, it looks great in IE 9 and Chrome…. BUT! Firefox ends up actually reading the file and ends up shrinking its own fonts and changing line height so that it all looks like ugly double spacing. I know Firefox is reading it because I went to the file meant only for IE and changed things in and it was reflected in Firefox.

Can someone help me figure out what is going on?

This is running on Glassfish 3.1.2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:21:48+00:00Added an answer on June 12, 2026 at 6:21 pm

    So here was the problem. I am using facelets and this was in the template file. What I didn’t realize is that conditional statements as normally applied don’t work with facelets. When processed by the servlet it just trashes anything it doesn’t ‘get’ and so all stylesheets are read.

    If you want to use conditional statements with facelets you have to put them in something like an element. It can get ugly.

    Fortunately a stacker named BalusC has come up with a clever library that includes a tag for taking care of conditional statements. After a day of trying everythign every which way and looking everywhere on this, I finally found a single post that mentioned this issue with facelets and conditional statements. That lead to a Google code page for an ‘Omnifaces’ project where the tag (and a bunch of other useful features) is documented.

    The library is available by way of maven (where I got it) but possibly other ways. Anyway from reading the post to fixing the code was all of about a half hour if that.

    Facelets plus IE conditional statements = bad news.

    Use outputText or Omnifaces or write your own component.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For text links, I have: CSS: a:link {color: #3366a9; text-decoration: none} a:hover {border-bottom: 1px
I have a quandary. My web application (C#, .Net 3.0, etc) has Themes, CSS
i have this css code, and i want to shorten it. #one{ background: #6cab26;
I have this CSS. the property FILTER In class .crumb make my background and
In an ASP.NET Dynamic Data web site/project, all the templates have CSS classes like
I have css: a:visited { text-decoration: none; color: #CCC; } a:hover { text-decoration: underline;
I have CSS code like this div ul li input{ width:70%} What to do
This is my quandary. Let me just set the scene: I have a grid
I have CSS that looks like this... .ColorSeparatorArea { background-color: #3d3d77; height: 1px; }
I have css like this: .done {list-style-image:url('images/tick.gif')} .notdone {list-style-image:url('images/cross.gif')} And html like this: <ul>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.