.cut-text {
text-overflow: ellipsis;
overflow: hidden;
width: 160px;
height: 1.2em;
white-space: nowrap;
}
<div class="cut-text">
I like big butts and I can not lie.
</div>
Code Example |
---|
Css :: css media queries between two sizes |
Css :: google icon cdn |
Css :: css background image size to fit screen |
Css :: css capitalize first letter |
Css :: css no underline |
Css :: how to hide the bullet list css |
Css :: filter for css white color |
Css :: css comic sans |
Css :: css wordwrap |
Css :: html static background |
Css :: center h1 css |
Css :: how to add css in flask app |
Css :: 2 lines p css |
Css :: make something unclickable css |
Css :: input autocomplete css color |
Css :: how to center in absolute position |
Css :: css first child |
Css :: media queries css not working for mobile |
Css :: table overflow not working |
Css :: css reset style |
Css :: disable scroll css |
Css :: console.log with color font |
Css :: how to make header always on top in html |
Css :: css top right corner |
Css :: cursor disabled |
Css :: increase tooltip width in angular material |
Css :: chrome hide blue highlight css mobile |
Css :: css logo color |
Css :: centred div |
Css :: lato font family css |