I'm using a div
with a fixed width, and within that div
I have a p
with the following CSS:
height:100px;
overflow:hidden;
I want my templates to display a MORE
button when there is text that overflows the paragraph element and is therefore hidden. I can get a decent estimate that works 90% of the time based on how many words are in a box of a paragraph with height 100px. However, this doesn't account for things like blocks of text with a lot of short lines and line breaks. Not to mention users changing their browser's default font size. I'm less worried about the latter, but I'd really like to be able to accurately determine whether or not an element has overflow within a django template.