css |
How to solve word problems that are too long on the website..
Step by step:
Make file "file.css" :
Example html code:div {
background: #ededed;
border: solid 1px #ccc;
padding: 10px;
width: 180px;
margin: 20px;
}
.break-word {
word-wrap: break-word;
}
<div class="break-word">You can make other code like below:
<h4>breakword</h4>
<p>http://gspot-design.blogpost.comdhdfklhsdjs;ljflskhglkohdsklfhaklhfdklhaljhoierlksifjoijejrposfpjporejtpojpojflsjfpojptojdepojfpoejrp</p>
</div>
Step by step:
Make file "file.css" :
Example html code:.code {
width:720px;
overflow: auto;
}
<div class="code">
<h4>breakword</h4>
<p>http://gspot-design.blogpost.comdhdfklhsdjs;ljflskhglkohdsklfhaklhfdklhaljhoierlksifjoijejrposfpjporejtpojpojflsjfpojptojdepojfpoejrp</p>
</div>
Any question? Just comment..