Use text-overflow: ellipsis on a button element - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button text

Description

Use text-overflow: ellipsis on a button element

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials