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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -