I have a full page layout with a top and center layout unit. In the top layout unit, I have another (element-based) layout with a left and center layout unit. I am trying to set the background color of the entire top layout unit, including the nested layout using the following code:
Code: Select all
<p:layout fullPage="true">
<p:layoutUnit position="top" height="80" gutter="0" style="background-color: red;">
<p:layout styleClass="ui-content ui-header">
<p:layoutUnit position="left" width="630">
Left
</p:layoutUnit>
<p:layoutUnit position="center">
(omitted for brevity)
</p:layoutUnit>
</p:layout>
</p:layoutUnit>
(omitted for brevity)
</p:layout>
http://postimage.org/image/35uldc204/
You can clearly see that the background color is not applied on the nested layout as I want it to be. I have tried setting the background color on the nested layout's layout units as well but this only colors the actual content and not the entire unit. How can I set the background color for the entire top layout unit, including the nested layout as well?
Thanks!