DEV Community

loading...

Discussion on: 5 CSS Tricks Nobody Tells You!

Collapse
pustelto profile image
Tomas Pustelnik • Edited

The line trunctation in your 5th tip won't work like this. You have to add few more properties, in order for it to work properly:

  -webkit-box-orient: vertical; 
  -webkit-line-clamp: 4; 
  display: -webkit-box; 
  overflow: hidden;
Enter fullscreen mode Exit fullscreen mode
Collapse
deyrupak profile image
Rupak Dey Author

Thank you!
I've added this in the edit.