Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div.test { white-space: nowrap; width: 12em; overflow: hidden; border: 1px solid #000000; } div.test:hover { text-overflow: inherit; overflow: visible; } </style> </head> <body> <p>Hover over the two divs below, to see the entire text.</p> <div class="test" style="text-overflow:ellipsis;">This is some long text that will not fit in the box</div> <br> <div class="test" style="text-overflow:clip;">This is some long text that will not fit in the box</div> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_text-overflow_hover by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:53:30 GMT --> </html>
Result:
Try it Yourself - © w3schools.com