In my jsf page I have a panelGrid with 3 columns. In order to give those columns a certain witdh I used columnClasses attribute like this
columnClasses="width20perc,width30perc,width50perc"
Then in my default.css :
.width20perc
{
width: 40px !important;
min-width: 15em !important;
}
Normally I would use 20% there but in order to just change the width at least to some other value I used 40px instead. However not even this works... I'm not able to change the width of each column in any way. When I look at the source code of the table it says
<td class=width20perc>
so the -elements DO have the right classes but when I inspect their css styles the do not inherit the styles I defined in my default.css . However they DO inherit the following font-size style which is also defined in my default.css so I think the stylesheet is loaded properly:
.ui-widget,
.ui-widget .ui-widget
{
font-size: 90% !important;
}
I'm using primefaces 3.4.2 and I load my outputstylesheet in my default template like this :
<h:head>
<h:outputStylesheet name="css/default.css" />
<ui:insert name="head">
<title>Page title</title>
</ui:insert>
</h:head>