How would you format the following such that the button displayed on two lines?
<apex:commandButton value="First line \n Second line">
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
You would have to play around with the CSS to achieve this. You would need to use the
width, word-wrap properties and add/remove spaces depending upon the word you want to fit in the button.
Below is what i tried in my developer org and achieved the result you expected.
<apex:commandButton value=" First line Second line" style="width: 70px; word-wrap: break-word;"/>