Testing for CSS overflow

I wanted to show a popup box for an anchor whose text was too long. Here is a quick snippet how to test if overflow is happening, shamelessly taken from <a href="http://www.bramstein.com/projects/text-overflow/.

http://www.bramstein.com/projects/text-overflow/.</p>

 

https://gist.github.com/1121011

I implemented an example popup implementation here: http://jsfiddle.net/4gY9P/

May this be of help to somebody else on the tubes.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s