The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Okay, here is what I want to do. I want to make it so when a word is clicked a small popup window comes up with a definition of the word. I know this can be done with javascript but how can I do it so that the window size depends on the lenth of the definition. I hope I explained myself good enough. Thanks, Andy

I think that sizing a window via the length of the content would be fairly difficult. The only thing I could think of would be to get the length of the string and x that by ave num of pixels per character and then take the square root rounded up and make that number the length and width.