Megamenu - vertical centering

UI Components for JSF
Post Reply
kontsevich
Posts: 3
Joined: 01 Jul 2014, 13:36

01 Jul 2014, 14:02

Hi guys,

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>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests