Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Align <p:selectOneMenu> with <p:outputLabel> horizontally inside a table column (<p:panelGrid>)

As you see in the image below:

enter image description here I want these components to be horizontally aligned correctly.

i tried the follwoing but no avail:

...
<p:outputLabel value="Etat d'examen : " for="state"/>  
<p:selectOneMenu id="state"
                 value="#{examenListBean.stateOption}" 
                 style="width: 120px;" > 

    <p:ajax listener="#{examenListBean.fetch}" update="tabexam"/>
    <f:selectItems value="#{examenListBean.etatExamOptions}"/> 

</p:selectOneMenu>
...
like image 342
Jalal Sordo Avatar asked Mar 22 '23 22:03

Jalal Sordo


1 Answers

Use vertical-align:middle; for them to align properly.

For Instance, as per your code,

style="width: 120px; vertical-align:middle;"

Hope this helps.

like image 199
Nitesh Avatar answered Apr 05 '23 16:04

Nitesh