Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> span { display: block; width: 50px; padding: 0 20px; margin: 0; word-break: keep-all; text-align: center; } </style> </head> <body> <h1>Button with word-break</h1> <button type="submit"> <span>My Button Example</span> </button> </body> </html>