HTML CSS examples for CSS Form:input button text
Use text-overflow: ellipsis on a button element
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> button {<!--from ww w . j a v a2 s.c om--> display: block; width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; } </style> </head> <body> <button>shailender arora from delhi shailender arora from delhi</button> </body> </html>