News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

How to break the word in HTML ? ?

Started by thiruvasagamani, Jul 21, 2008, 07:25 PM

Previous topic - Next topic

thiruvasagamani

This is a sample code.... [blink]Try this[/blink]

<html>
<body>
<div id="myD"
     style="width:400px; background-color:red;">
This is a sample paragraph.
This is a sample paragraph.
This is a sample paragraph.
This is a sample paragraph.
This is a sample paragraph.
This is a sample paragraph.
This is a sample paragraph.
</div>
<br>
<input type="button"
       value="Set wordBreak property to break-all"
       onclick="myD.style.wordBreak='break-all'">
</body>
</html>

Thiruvasakamani Karnan