By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

What is the max length of tool tip

P: 190

can any one say what is the maximum display length of Toot tip (that is we given as title in href)
Nov 21 '08 #1
Share this Question
Share on Google+
4 Replies

Expert 5K+
P: 6,050
You know, I don't believe there is one..

Strange question.

Why do you ask?
Nov 21 '08 #2

P: 88
It's browser dependant. Check it out yourself with the test below:

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.     $titleLength=100; //set the length of the title here
  4.     for($i=0;$i<$titleLength-3;$i++) {
  5.         $title.='x';
  6.     }
  7.     $title.="END";
  8. ?>
  9. <html>
  10.     <head></head>
  11.     <body>
  12.         <p><span title="<?php echo $title; ?>">test</span></p>    
  13.     </body>
  14. </html>
Nov 21 '08 #3

P: 190
Actually i have a requirement to display the description in tool tip..

clearly i want to display a description in user table. If descritpion goes more than 50 chars then i should display like below

description (upto 50) ....

then total description should display in onmouse over or tool tip.....

But tool tip is not displaying fully...
Nov 24 '08 #4

P: 88
then total description should display in onmouse over
How about coding a custom tooltip box with javascript, so that you can style it to your needs and get rid of the default one-line tooltips of browsers.
Nov 24 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.