How to change color of layout unit ?

UI Components for JSF
Post Reply
Cameron
Posts: 1
Joined: 18 Jul 2017, 15:12

18 Jul 2017, 15:21

<p:layout fullPage="true">

<p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true" style="background-color: red !important;" >
Header
</p:layoutUnit>


I have tried this however it only changes the border color of the unit. Please help!

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

18 Jul 2017, 20:48

try css with selectors and check the generated DOM via firebug/developer tools.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

19 Jul 2017, 11:06

Like I told in Stackoverflow, with even some more hints: https://stackoverflow.com/questions/451 ... ayout-unit

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 60 guests