We would like to know how to make Text always on two lines.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--from w w w .j a va 2s . c o m-->
width: 150px;
height: 80px;
border: 2px dotted;
margin: 10px;
text-align: center;
}
</style>
</head>
<body>
<div>
short <br />title
</div>
<div>
A little <br />longer title
</div>
<div>
long title <br />with more words
</div>
</body>
</html>
The code above is rendered as follows: