View Full Version : How to Specify Width in a Popup Box?

11-12-2011, 10:43 PM

In a previous thread, I was provided with the following, very useful code for having a "Target" word or phrase highlighted in yellow, where the "Text here" message pops up in a box when the cursor moves over the target word.

<span style="background-color: yellow" TITLE="
Text here.

I was wondering if code can be added to specify the width of the pop-up box. The default seems to be for the box to be much wider than I would like.


11-12-2011, 10:49 PM
Hello BSquared18,
It would be easy to style your tooltip from the CSS instead of using inline styles like your example.

Some tooltips here (http://nopeople.com/CSS%20tips/tooltip/index.html).

11-12-2011, 10:52 PM
Thanks for the tip, but for my purposes the code I showed is working well, and CSS isn't necessary.

Still would like someone to suggest how to specify the box width in the code. Pretend you are talking to someone who needs it spelled out, because that's the case!


11-12-2011, 11:13 PM
I see what you're doing... and I spoke too soon. There is no way to style the box that pops up with the title text in it.

There are some alternatives though -

11-13-2011, 12:34 AM
There's no way to style it because not all browsers pop it up in a separate box. Some browsers display the text in the status bar instead.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum