CSS width in styleClass not working on pe:inputNumber
Posted: 26 Jul 2012, 22:08
Hi,
I am using Primefaces Extensions 0.5.1 and trying to use an .css file to change CSS configurations of my page, but <pe:inputNumber> doesn't recognize some changes, even if I put some !important attributes. Here is some code example:
Not working example:
Page
CSS file
Working example:
Page
CSS file
Does anyone have an idea about this problem?
Thanks!
I am using Primefaces Extensions 0.5.1 and trying to use an .css file to change CSS configurations of my page, but <pe:inputNumber> doesn't recognize some changes, even if I put some !important attributes. Here is some code example:
Not working example:
Page
Code: Select all
<pe:inputNumber
id="peso"
styleClass="inputPeso"
decimalSeparator=","
thousandSeparator="."
decimalPlaces="3"
value="#{produtoBean.produto.peso}"/>
Code: Select all
.inputPeso
{
width: 20px !important;
margin-left: 20px;
float: left;
}
Page
Code: Select all
<pe:inputNumber
id="peso"
style="width: 20px;"
styleClass="inputPeso"
decimalSeparator=","
thousandSeparator="."
decimalPlaces="3"
value="#{produtoBean.produto.peso}"/>
Code: Select all
.inputPeso
{
margin-left: 20px;
float: left;
}
Thanks!