Hi, I have a styleClass defined for dataTable's rows. But not all properties are correctly applied. Font styles are, but borders don't. I have a complex structure within each row, and I'm using an html table. And ungly borders are shown. panelGrid also displays borders (and it has an explicit border attribute). Is it an issue, or I'm doing something wrong?
I'm using M2
dataTable's styleClass doesn't apply style
-
- Posts: 65
- Joined: 27 Feb 2011, 18:04
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
Try the below style - Example usage
Code: Select all
<p:dataTable styleClass="noborder"
Code: Select all
.noborder .ui-datatable-data td, .ui-datatable .ui-datatable-data-empty td {
border:none;
}
PrimeFaces 3.4, Seam Faces 3.0.2.Final, Glassfish v3.1, Mojarra 2.1.10, NetBeans 7.2, Hibernate JPA 2.0, Seam Persistence 3.0.0.Final Theme default HOT-SNEAKS
-
- Posts: 65
- Joined: 27 Feb 2011, 18:04
Thank you bercolax. Worked!
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
-
- Posts: 65
- Joined: 27 Feb 2011, 18:04
Hello, I, trying to do the same as explained in this post, with dataGrid. I've tried
.midatagrid .ui-datagrid-data table td, .ui-datagrid-content table td, .ui-datagrid div .ui-datagrid-data-empty td {
border:none;
background:white;
}
and I can have a white background in the columns inside the datagrid, but apparently the background of the enclosing div is not affected. The question is, how could I obtain a "completely* white dataGrid presentation? Except for header, of course.
And, by the way, in IE8 even the white background for columns doesn't work
Thanks
.midatagrid .ui-datagrid-data table td, .ui-datagrid-content table td, .ui-datagrid div .ui-datagrid-data-empty td {
border:none;
background:white;
}
and I can have a white background in the columns inside the datagrid, but apparently the background of the enclosing div is not affected. The question is, how could I obtain a "completely* white dataGrid presentation? Except for header, of course.
And, by the way, in IE8 even the white background for columns doesn't work
Thanks
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
-
- Posts: 65
- Joined: 27 Feb 2011, 18:04
Hello,
I reopen this post because I'm still having trouble with datagrid. The desired behavior is removing all borders. Thanks
I reopen this post because I'm still having trouble with datagrid. The desired behavior is removing all borders. Thanks
----------------------------------------------------------------------------
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
primefaces-3.4
mojarra-2.1.2-FCS
Tomcat 7
-
- Information
-
Who is online
Users browsing this forum: No registered users and 33 guests