लाइन तोड़कर अगली लाइन पर लपेटने के लिए word-wrap प्रॉपर्टी का उपयोग करें। CSS में word-wrap प्रॉपर्टी लागू करने के लिए निम्नलिखित कोड आज़माएं:
उदाहरण
<!DOCTYPE html> <html> <head> <style> div { width: 200px; border: 2px solid #000000; } div.b { word-wrap: break-word; } </style> </head> <body> <h2>word-wrap: break-word प्रॉपर्टी</h2> <div class = "b"> ThisisdemotextThisisdemotext: thisisaveryveryveryveryveryverylongword. लंबा शब्द अगली लाइन पर लपेटता है।</div> </body> </html>
आउटपुट
