I'm using PrimeFaces 3.4.2 and I have to use <p:dataTable>
. I want fixe the width of the first column to less than 5 px.
for that I created a css class :
.myTableFlux td:nth-child(1) {
width: 5px !important;
}
this is my table :
<p:dataTable value="#{bean.listFlux}" var="list" styleClass="myTableFlux">
<p:column headerText="Status" >
<h:graphicImage value="/resources/images/so#{list.i}.jpg" />
</p:column>
<p:column headerText="Nom">
<h:outputText value="#{list.name}" />
</p:column>
</p:dataTable>
the problem is that I can not go below 5 px.
here is the image that I want to have as a result
margin:0px;
ormargin:1px;
– Daniel5px
is not the same as5%
. – BalusC