html - Detect if a div has more than one line -


how can detect if div has more 1 line? mean this:

div :multiline {    ... } 

i'd format content regarding number of lines (1 or more)

if you're willing use javascript/jquery, check height of div , see if greater 1 line of text. of course, isn't error-proof, wouldn't know way.


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -