![]() |
CSS tooltip help
I'm using the following in the extra CSS section of a style to create tooltips.
Code:
a.info{ HTML Code:
<a class="info">text<span>tip</span></a> I have been trying to make the tooltips be variable width (fit contents) rather than fixed, but if I remove the width attribute or do width: auto; then every tooltip is very narrow (about 56px). They also float _behind_ tcat and thead elements of vB tables, and I need them to be on top. Played with the z-index values and can't figure out where it's wrong. |
The z-index thing doesn't seem to be a problem on my vanilla 3.7b4 board. I embedded your example tip into the FORUMHOME tcat header, and it displays properly.
Offhand the only way I can think of having the width work the way you want would be to use "width: auto; white-space: nowrap;", but this will only work if your tooltips are all short enough one liners that they don't walk off the page. -- hugh |
All times are GMT. The time now is 10:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|