开发者

How to change the width of h:outputLabel

开发者 https://www.devze.com 2022-12-15 07:50 出处:网络
I am having a hard time trying to change the width of my h:outputLabe开发者_开发问答l, but I still could not get it changed.

I am having a hard time trying to change the width of my h:outputLabe开发者_开发问答l, but I still could not get it changed.

By using CSS, I can change the color, font, frame, anything but NOT the WIDTH.

Thank you so much.


The HTML label element which is generated by h:outputLabel is by default displayed as a widthless inline element. You need to set its CSS display property to block to be able to change the width.

E.g.

label {
    display: block;
    width: 150px;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消