better css for the drupal hovertip module
digg_topic = 'linux_unix';
digg_url = 'http://www.johnandcailin.com/blog/cailin/better-css-drupal-hovertip-module';
don't get me wrong, i'm a happy customer of the drupal hovertip module. everything worked out of the box, and i've enjoyed using it to cram even more pictures into my website. however, the included default css leaves a little to be desired for the following reasons :
- it's too specific. it assigns a very particular look and feel to your tooltips, complete with background colors, fixed widths and font sizes. sure, in theory, you can override all that in your theme css. but if css specificity is not your thing, you're going to be tearing your hair out trying to figure how to do it.
- the ui element chosen to indicate "hover here" is non-standard. the "hover here" directive is admittedly fairly new, but the emerging standard seems to be the dashed-underline (certainly not the italic font used in the drupal hovertip module).
- the clicktip css does not work on ie6. the link to close the clicktip has mysteriously gone missing.
you can download a more generic, flexible version of the necessary hovertip module css that solves all these issues here. here are some examples of how to use it.
Original Article: