www.webdeveloper.com
Results 1 to 5 of 5

Thread: title tag

  1. #1
    Join Date
    Aug 2009
    Posts
    48

    title tag

    I have <a title="jjj
    jjj" />


    it appears as jjj new line jjj in itnernet explorer. but in firefox it ignores new lines and replaces them with space.

    any solution for this on firefox?

  2. #2
    Join Date
    Aug 2009
    Posts
    48
    I have this line:
    <td style="cursorointer" onclick="abc()" title="Check this option to make A search.
    Leave it unckecked for B search.
    Use spaces to separate between words.">
    <u>Multisearch</u>
    </td>

    I need to have line break after "A search" and "B search".
    In Internet explorer it works just fine with how it is written now.
    Running it in Mozilla/Firefox I get one long row instead of 3 seperated rows as I want to.

  3. #3
    Join Date
    Aug 2011
    Location
    Worthing, West Sussex
    Posts
    96
    Not going to get anywhere with that. Try a JS tool library, such as:

    http://www.bosrup.com/web/overlib/

  4. #4
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,217
    Quote Originally Posted by iversonmania View Post
    I have <a title="jjj
    jjj" />


    it appears as jjj new line jjj in itnernet explorer. but in firefox it ignores new lines and replaces them with space.

    any solution for this on firefox?
    Totally incorrect link coding to begin with. Firefox is "smarter" than IE and hates bad coding. You closed the tag when link tags have their own closing tag:

    Code:
    <p><a href="URL path to external link" title="Mouseover Description">Link Text Description</a></p>
    New lines do not show in standard tooltips with the title attribute. JS tooltips must be used.
    Last edited by Major Payne; 08-13-2011 at 12:48 AM.

  5. #5
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,217
    Quote Originally Posted by iversonmania View Post
    I have this line:
    <td style="cursorointer" onclick="abc()" title="Check this option to make A search.
    Leave it unckecked for B search.
    Use spaces to separate between words.">
    <u>Multisearch</u>
    </td>

    I need to have line break after "A search" and "B search".
    In Internet explorer it works just fine with how it is written now.
    Running it in Mozilla/Firefox I get one long row instead of 3 seperated rows as I want to.
    You would need to use a JavaScript tooltip in order to customize the title attribute so you have line breaks:

    http://www.freejavascriptkit.com/fre...r_tooltip.html
    http://www.dynamicdrive.com/dynamici...tmltooltip.htm
    http://boxover.swazz.org/
    http://www.xinod.it/scripts/tooltip_gallery/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles