javing
javing

Reputation: 12423

JSF outputstylesheet doesnt work in firefox?

I havea a problem with the outputStylesheet tag:

It works perfectly in chrome but doesnt work at all in firefox

    <h:head>
        <title><ui:insert name="title" /></title>
            <h:outputStylesheet library="css" name="style.css" />   
    </h:head>

What should i do to fix this problem? My application looks fine, but just in google chrome.

In FF the inspect element option shows the CSS file with all its options, but the browser does'nt display it at all.

Upvotes: 1

Views: 709

Answers (1)

BalusC
BalusC

Reputation: 1109272

That can happen when one or more CSS properties are been overridden by another stylesheet. Using Firebug should help you in nailing down the culprit. Open the page in Firefox, rightclick the HTML DOM element of interest and choose Inspect Element. Firebug should show up in the bottom box with the HTML DOM tree on the left hand side and a list of all CSS properties on the right hand side. If a property is been strikeout, then it means that there's another CSS property which has overridden it. In the same list, you should be able to find the responsible property and its location.

Upvotes: 1

Related Questions