aspose file tools*
The moose likes JSF and the fly likes Problem with alignment of outputLabel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with alignment of outputLabel" Watch "Problem with alignment of outputLabel" New topic
Author

Problem with alignment of outputLabel

D. Formenton
Ranch Hand

Joined: Mar 20, 2008
Posts: 47
Hi,

I don't understad how to align vertically an outputLabel with an inputText.

I have this code:


<hutputLabel style="text-align: right; display: block;"
value="#{bundle.EditArticoliLabel_iva}" for="iva" />
<h:inputText id="iva" value="#{articoliController.selected.iva}"
style="text-align: right; width: 20px;"
title="#{bundle.EditArticoliTitle_iva}">
</h:inputText>

and the outputlabel is a little higher than inputText.

How I can lower the outputLabel?

Thank you.

Domenico
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15662
    
  15

If you use the "Code" button to put code tags around your XML, the message display won't get mangled.

The label tends to be a bit higher, because the idea is that the framing around the inputText control is not important - you would expect the text within the control to align. However, the CSS vertial margin and passing options can help.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with alignment of outputLabel
 
Similar Threads
custom messages
Java Script Reference to JSF components
Update another component when selectOneMenu
Can't get c:import to work
Data from search not being dynamically added to rich:dataTable