Marquee Text When Text Overflows
Posted
by Mike Stanford
on Stack Overflow
See other posts from Stack Overflow
or by Mike Stanford
Published on 2009-05-07T16:22:30Z
Indexed on
2010/05/24
16:31 UTC
Read the original article
Hit count: 648
Hi all, well heres my problem. Lets say i have 3 div tags, all are 100pixels wide:
<--- DIV WIDTH --->
Text in div 1
Text in div two, it overflows
Text in div three
<--- DIV WIDTH --->
Now, currently i have this css for the divs:
width:100px;
overflow:hidden;
What i want to do is if the text overflows, it scrolls like a marquee so all the text can be seen if you wait a little bit. But i only want the marquee to show if the text overflows.
How would i do this?
Thx, Tony
© Stack Overflow or respective owner