Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS Word Wrap</title> <style> p.wordwrap { width:20em; background-color:#11a286; border: 1px solid #075244; color:#fff; word-wrap:break-word; padding:10px; } </style> </head> <body> <p class="wordwrap">In this paragraph, i am sooooooooooooooooooooooooooooooooooooooooooooooooooooolongggggggggggggggggggggggggggggg.The long word will break and wrap to the next line.</p> </body> </html>