HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ border: 1px solid black; width: 150px; height: 100px; margin-bottom: 10px; } #point{ word-wrap: normal; } #point1{ word-wrap: break-word; } </style> </head> <body> <h1>CSS word-wrap Property</h1> <div id="point"> This text will break to next line WhenWordWrapBreakWordIsUsed. </div> <div id="point1"> This text will break to next line WhenWordWrapBreakWordIsUsed. </div> </body> </html>
OUTPUT
×

Save as Private