I am having a tough time with overflow: hidden.
Basically, I am trying to hide the overflow of an unordered list which is located in a
This worked for me
Adding position:absolute to the parent container made it work.
PS: This is for anyone looking for a solution to dynamically truncating text.
EDIT: This was meant to be an answer for this question but since they are related and it could help someone on this question I shall also leave it here instead of deleting it.