CSS3 Text Overflow Tutorial Online | Coding Tag
×

CSS3 Text Overflow

3436

CSS3 text-overflow: The text-overflow CSS property determines how overflowed content that is not displayed is signaled to users.

Support Browser: Google Chrome, Mozilla, IE 6.0, Safari, Opera.

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.ellipsis{
white-space: nowrap;
width: 500px;
border: 2px solid #ddd;
padding:10px;
overflow: hidden;
text-overflow: ellipsis;
}
.clip{
white-space: nowrap;
width: 500px;
border: 2px solid #ddd;
padding:10px;
overflow: hidden;
text-overflow:clip;
}

</style>
</head>

<body>
<p class="clip"> Pellentesque ornare, leo a suscipit hendrerit, massa tortor tempor eros, vitae aliquam dolor leo sit amet urna. </p>
<p class="ellipsis"> Pellentesque ornare, leo a suscipit hendrerit, massa tortor tempor eros, vitae aliquam dolor leo sit amet urna. </p>
</body>

</html>

Result:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments