I have a mini form and I need the long text of the value of submit button to be broken down in two rows so it will fit the width of the parent div. I tried setting the width of the submit button but that does not do the trick.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
<button type="submit">instead of<input type="submit">. This will allow you to provide the button’s contents as HTML instead of plain text, allowing you to format the button’s contents however you want.The most basic solution would be to manually include a line break:
And of course you can also use more advanced CSS layouts for the button contents.
See it in action.