0
I’m using the component calendar
of Primefaces
, but I’m having a hard time overwriting CSS
of the same.
Follow my code on xhtml
:
<h:panelGrid columns="2" columnClasses="col one, col one">
<h:outputLabel value="Data Início:"
styleClass="label" style="width: 50% !important" />
<h:outputLabel value="Data Fim:"
styleClass="label" style="width: 50% !important" />
<p:calendar pattern="dd/MM/yyyy" mode="popup" required="true"
showOn="button" popupIconOnly="true"
value="#{bean.entidade.dataIni}" locale="pt_BR"
showButtonPanel="false" readonlyInput="true"
maxlength="10" />
<p:calendar pattern="dd/MM/yyyy" mode="popup" required="true"
showOn="button" popupIconOnly="true"
value="#{bean.entidade.dataFim}" locale="pt_BR"
showButtonPanel="false" readonlyInput="true"
maxlength="10" />
</h:panelGrid>
My problem is I’m setting a style style="width: 50% !important"
which is not applied, and the two components calendar
are below each other.
Obs: the CSS
col one is p next:
.col.one,.col.one * {
width: 900px;
}
How? Could you give examples?
– Renan Gomes
Thanks for the example, but I already used both and had not solved in my case.
– WyllianNeo