How to change width h: outputLabel

It is difficult for me to change the width of h: outputLabel, but I still could not change it.

Using CSS, I can change the color, font, frame, something other than NOT WIDTH.

Thank you very much.

+4
source share
1 answer

The HTML label element that is generated by h:outputLabel displayed by default as an element with no inline width. You need to set your CSS display block property to be able to change the width.

eg.

 label { display: block; width: 150px; } 
+8
source

All Articles