there is small problem with megamenu and elements inside. I've inserted an image in megamenu having height more than height of megamenu. Now I'm trying to center megamenu elements (menu-list or menu-items) inside menu container, but all my efforts (vertical-align etc) were unsuccessful. All menu elements by default are on the top. Could you advice me what to do?
Code: Select all
<p:megaMenu >
<f:facet name="options" >
<h:commandLink action="#">
<p:graphicImage url="/social/lj.gif" />
</h:commandLink>
</f:facet>
<p:menuitem value="Main" url="#" />
<p:submenu label="Indusrtries" >
<p:column>
<p:submenu style="display: none; ">
<p:menuitem value="Energy" url="#" />
<p:menuitem value="Machinery" url="#" />
<p:menuitem value="Transport" url="#" />
<p:menuitem value="Construction" url="#" />
</p:submenu>
</p:column>
</p:submenu>
</p:megaMenu>