HTML CSS examples for CSS:Quiz
Set the overflowed content for the <p> element to have ellipsis (...)
<!DOCTYPE html> <html> <head> <style> p {<!--from w ww . ja v a 2 s .co m--> white-space: nowrap; width: 200px; border: 1px solid #000000; overflow: hidden; text-overflow: ellipsis; } </style> </head> <body> <p>This paragraph contains a very long word: supercalifragilisticexpialidocious.</p> </body> </html>