DEV Community


Discussion on: 5 CSS Tricks Nobody Tells You!

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
deyrupak profile image
Rupak Dey Author

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