HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ width: 80px; padding: 10px; line-height: 1.8; border:1px solid #8c8c8c; } #point{ hyphens: none; -webkit-hyphens: none; -ms-hyphens: none; } #point1{ hyphens: manual; -webkit-hyphens: manual; -ms-hyphens: manual; } #point2{ hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; } </style> </head> <body> <h1>CSS hyphens property</h1> <h2>hyphens: none;</h2> <div id="point"> An extra­ordinary piece of work! </div> <h2>hyphens: manual;</h2> <div id="point1"> An extra­ordinary piece of work! </div> <h2>hyphens: auto;</h2> <div id="point2"> An extra­ordinary piece of work! </div> <p><strong>Note</strong>: Red colored dots are '‐' (hyphens).</p> </body> </html>
OUTPUT
×

Save as Private