Legend of fieldset is align in the center by default

Viewed 8

I´m working in a project with primefaces 3.2.2 and I want to use a p:fieldset in a form. I saw in the documentation that the legend is align to the left by default, the problem i have is that the legend is align to the center, i tried using style attribute, i look for solutions but i did not find any helpful.

The fieldset is inside a p:dialog, i thought it was the problem but no.

This is the definition of the fieldset:

<p:fieldset legend="Simple Fieldset">
  <h:panelGrid >
    <h:outputText value="The story begins as Don Vito Corleone ..." />
   </h:panelGrid>
</p:fieldset>

But always the legend is showing like this:

Wrong Fieldset Legend

and for better ui visibility I want the legend like this:

Correct Fieldset Legend

I tried searching for attributes in style tag but i have no succes. I want to know if i have a problem with the order of tags, or maybe is the version i´m using. Thanks in advance.

0 Answers
Related