wordWrap ব্যবহার করুন৷ জাভাস্ক্রিপ্টে প্রপার্টি যাতে লম্বা শব্দ ভাঙ্গা যায় এবং পরবর্তী লাইনে মোড়ানো যায়।
উদাহরণ
আপনি wordWrap -এর সাথে কীভাবে কাজ করবেন তা শিখতে নিম্নলিখিতটি চালানোর চেষ্টা করতে পারেন সম্পত্তি -
<!DOCTYPE html>
<html>
<head>
<style>
#box {
width: 150px;
height: 150px;
background-color: lightblue;
border: 1px solid black;
}
</style>
</head>
<body>
<button onclick = "display()">Set</button>
<div id = "box">
ThisisDemoText.ThisisDemoText.ThisisDemoText.ThisisDemoText.Thisis DemoText.ThisisDemoText.
</div>
<script>
function display() {
document.getElementById("box").style.wordWrap = "break-word";
}
</script>
</body>
</html>