Code Snippet

Home » Code Snippets » HTML » Button With Line Breaks

Button With Line Breaks

You can use carriage return characters to break the line: 


<input type="button" value="Really&#x00A;Tall&#x00A; Button">

Subscribe to The Thread

  1. In last Opera (11.51) doesn’t work.

  2. Doesen’t work on ipad either.

  3. Doesn’t work in Dolphin Mini Browser on Android

  4. johndoe

    <button>line1<br/>line2<br/>line3</button>

    better solution.

  5. i think johndoe’s solutions is better..

    • It works fine when you need a <button>, but when you want an honest to goodness button input, it’s a poor semantic replacement.

Speak, my friend

At this moment, you have an awesome opportunity* to be the person your mother always wanted you to be: kind, helpful, and smart. Do that, and we'll give you a big ol' gold star for the day (literally).

Posting tips:
  • You can use basic HTML
  • When posting code, please turn all
    < characters into &lt;
  • If the code is multi-line, use
    <pre><code></code></pre>
Thank you,
~ The Management ~