HTML to automatically hide text depending on scrolled size (like in Gmail)?

Posted by Stephen Cagle on Stack Overflow See other posts from Stack Overflow or by Stephen Cagle
Published on 2010-05-06T16:18:59Z Indexed on 2010/05/06 16:38 UTC
Read the original article Hit count: 132

Filed under:
|
|

Look at your Gmail inbox. You have 3 main columns

  1. contains the Sender
  2. contains "THE_EMAIL_SUBJECT - THE_EMAIL_BODY"
  3. the date the email was sent on

I note that when you resize the window, the Gmail web client automatically resizes the displayed text in the second column. It basically just truncates the text so that it always can display the sent on date to the right, and the sender to the left. It is a pretty neat effect, and I would like to have that effect for myself. Does anyone know how to do this in HTML/CSS/JS?

© Stack Overflow or respective owner

Related posts about html

Related posts about css