I need some customized buttons on my site which look differently than the others. I've created a css class for these buttons but it behaves strangely.
this is the class:
.regCommandButton {
color: #ffffff;
background: #29b6a0;
border-color: #23a38f;
width: 100%;
height: 25px;
font-family: 'pluto_sansthin';
font-size:1.4em;
}
font import in the same css file:
@font-face {
font-family: 'pluto_sansthin';
src: url(#{resource['fonts/plutosansthin-webfont.eot']});
src: url(#{resource['fonts/plutosansthin-webfont.eot?#iefix']}) format('embedded-opentype'),
url(#{resource['fonts/plutosansthin-webfont.woff']}) format('woff'),
url(#{resource['fonts/plutosansthin-webfont.ttf']}) format('truetype');
font-weight: normal;
font-style: normal;
}
html implementation:
<p:outputPanel>
<p:commandButton styleClass="regCommandButton" value="Save" action="#{URBean.saveNewUser}" update="regPanel" />
</p:outputPanel>
My problem is that the font related properties (font-family, font-size) are not being set if the button is inside of an p:outputpanel
. All the others applies on the button.
If I put the button outside of the outputpanel, everything goes as expected.
EDIT: Using !important for the font properties doesn't help eather.