3

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.

Thanks

2
  • are you enclosing this inside a pageblockitem/ pageblock if so try to apply the style on to the pageblock element. – Rao Mar 15 '13 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. – Peter Knolle Mar 15 '13 at 23:49
6

Add display:block

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.