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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -