CSS is not applied

UI Components for JSF
Post Reply
hfluz
Posts: 47
Joined: 01 Sep 2011, 15:31

03 Feb 2012, 21:06

I'm trying to apply CSS in a menubar and some menuitens. When I put the CSS code in the xhtml page inside a <style> tag, everything is applied correctly, however when I put the same CSS code in a separated CSS file (theme.css), it doesn't work.

My code:

Code: Select all

<h:head>
	<title><ui:insert name="titulo">Portal do Estudante de Graduação</ui:insert></title>
	<link href='http://fonts.googleapis.com/css?family=Ubuntu'
		rel='stylesheet' type='text/css' />
	<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/themes/portal-theme/theme.css" />
	<style>
.ui-menubar {
	overflow: visible;
	z-index: 20 !important;
	float: none;
	background: #38B44A;
	border-radius: 0px;
	box-shadow: inset 0px -1px 1px #333;
	color: white;
}

.ui-menubar .ui-menuitem-link, .ui-menubar .menubar-text
	{
	color: #F8F8FF;
	font-size: 20px;
}

.ui-menubar .menubar-text:hover {
	color: #222222;
	font-size: 20px;
}

.menubar-subitem-text .ui-menuitem-text {
	color: black;
	font-size: 13px;
	line-height: 2;
	padding: 0px;
	margin: 0px;
}
</style>
</h:head>
What could that problem be?

Thanks in advance.

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

04 Feb 2012, 11:09

user e.g. firebug to analyze requests, paths etc... we cannot do that for you

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests