Wednesday, June 16, 2010

Word wrap in Html

<!DOCTYPE html>
<html>
<head>
<style>
p.test
{
width:11em;
border:4px solid #000000;
word-wrap:break-word;
}
</style>
</head>
<body>

<p class="test">ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJ
KLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZAB
CDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUV
WXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOP
QRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJ
KLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZA
.</p>

</body>
</html>

No comments:

Post a Comment