Remove border from all PrimeFaces p: panelGrid components

I need to hide all borders of all panels using performances. I tried it without consequences:

table { border: none; } table tr, table td { border: none; } 

What can I do?

+5
css jsf border primefaces
Sep 19 '13 at 14:37
source share
5 answers

You need to be at least as specific as the default PrimeFaces selector.

 .ui-panelgrid>*>tr, .ui-panelgrid .ui-panelgrid-cell { border: none; } 

Do not use !important unless you need to override the hardcoded style in the HTML element.

See also:

  • How to remove border from certain PrimeFaces p: panelGrid?
  • How to override default PrimeFaces CSS with custom styles?
+7
Sep 19 '13 at 17:10
source share

This solution only affects the grids, but dataTables:

 .ui-panelgrid > * > tr, .ui-panelgrid > * > tr > td.ui-panelgrid-cell { border: none; } 

Thanks to the answer posted by Kukeltje here: Remove the entire frame on all panels outside the datatables

+1
Jul 16 '15 at 13:38
source share

Your CSS may have been rewritten somewhere else. You can try to use the rule !important .

 table, table tr, table td { border: none !important; } 
0
Sep 19 '13 at 14:40
source share

Tested on connectivity 5.1

 .ui-widget-content { border: none; } 
-one
Nov 07 '14 at 12:45
source share

This work in Primefaces 5

 .ui-panelgrid-content { border: none; } 
-one
Jun 08 '15 at 16:50
source share



All Articles