Skip to content

Instantly share code, notes, and snippets.

@apphp
Created January 29, 2014 10:13
Show Gist options
  • Save apphp/8685066 to your computer and use it in GitHub Desktop.
Save apphp/8685066 to your computer and use it in GitHub Desktop.
Button With Line Breaks in HTML
To get buttom with line breaks you can use carriage return characters to break the line: &#x00A; or just <br> with a <button> tag:
Source: http://www.apphp.com/index.php?snippet=html-button-with-line-breaks
<!-- First way -->
<input type="button" value="This is&#x00A;a Really&#x00A;Tall&#x00A; Button">
<!-- Second way -->
<button>This is<br/>a Really<br/>Tall<br/>Button</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment