Gyancode

A free library of HTML, CSS, JS

Search This Blog

Tuesday 28 February 2017

Word Wrap with Css

<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        .wrap{ width: 400px;border: 1px solid #ccc;background:#f6f6f6;word-wrap: break-word;float:left; margin:0px auto; padding:15px; font-size:16px; font-family:Verdana;}
    </style>
</head>
<body>
    <span class="wrap"> Lorem Ipsum is simply dummynospacetextcontentyoucancheckdummynospacetextcontentyoucancheckdummynospacetextcontentyoucancheck text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</span>

</body>
</html>

No comments :

Post a Comment