Tooltip with Scrollbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rellaboyina
    New Member
    • Jan 2007
    • 55

    Tooltip with Scrollbar

    I am working on a code where I need to display tooltip for a particular text once the mouse is hovered on the text. If the information to be displayed in the tooltip is too large, I want to display a scroll bar in the tooltip such that I can scroll down to verify all the inforamtion. But I didn't have any information about this tooltips with scrollbars. Is it possible to create a tooltip with a scrollbar? Please let me know.

    Thanks in advance.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    At its simplest, you could have an element with overflow set to scroll. If you want a bit more control and options, a quick search for "javascript tooltip" should give you some half-decent JavaScript tooltips.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      the most simple idea would probably be to use a title-attribute...

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Yes, but then you couldn't have a scroll bar.

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          true, but I've not yet seen such "titles" where this would have been necessary... but I guess that's not the opoint here.

          Comment

          Working...