I am trying to increase the width of the outputlabel on Visual force page , but i am not able to .

I gave style="width:30%"(as an example ), gave it in pixel to , but it wouldn't change. Any suggestions or ideas would be highly appreciative.


  • are you enclosing this inside a pageblockitem/ pageblock if so try to apply the style on to the pageblock element.
    – Rao
    Mar 15, 2013 at 22:21
  • Welcome to the SFSE and thank you for posting a question. Do you have any code that you can post? It usually helps to post the code that is giving you problems, so that people can better identify the problem. Mar 15, 2013 at 23:49

1 Answer 1


Add display:block

<apex:outputLabel value="Hello World" style="display:block;width:150px;" />
  • I have been beating my head over this on and off for months. I try for a while and then give up. THANKYOU!
    Nov 18, 2013 at 3:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .