DEV Community

loading...

Discussion on: The Guide to CSS Overflow Property

Collapse
riscie profile image
riscie

Nice one! I would like to add a combo which I use regularly:

div {
    overflow: hidden;
    text-overflow: ellipsis;
}

This will show as much text as possible ending with three dots: '...'.

Collapse
neshaz profile image
Nesha Zoric Author

Thanks for sharing! :)