Results 1 to 4 of 4

Thread: DHTML Tooltip Text Alignment

  1. #1
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Tooltip Text Alignment

    Hi there... I'm using the following script on one of my pages -

    http://www.dynamicdrive.com/dynamici...tmltooltip.htm

    The page I'm using it on is here:

    http://www.side-pot.com/links.php

    As you can see everything works great, it's just that on the rollovertext that is multiple lines... the text is aligned on the right. I'd like to have it aligned on the left instead. I'm not sure how to do this.

    Any help would be much appreciated. Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The link to your page is not working at the moment. The text in the demo page is aligned left so, at the moment, I have no real clue what to say. Did you change the style at all?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry for the delay in my response... i got busy with other mods to the site and forgot about this one!

    the link should be working now... not sure what happened before. the server has gone down a couple times over the past couple of weeks... it was probably durring one of those down times that you tried to access the site.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    To begin with, where you have:

    Code:
    <head>
    <style type="text/css">
    
    #dhtmltooltip{
    position: absolute;
    width: 250px;
    border: 0px solid black;
    padding: 2px;
    background-color: white;
    visibility: hidden;
    z-index: 100;
    /*Remove below line to remove shadow. Below line should always appear last within this CSS*/
    filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
    }
    
    </style>
    </head>
    
    <body>
    Take out the extra stuff, make it just:

    Code:
    <style type="text/css">
    
    #dhtmltooltip{
    position: absolute;
    width: 250px;
    border: 0px solid black;
    padding: 2px;
    background-color: white;
    visibility: hidden;
    z-index: 100;
    /*Remove below line to remove shadow. Below line should always appear last within this CSS*/
    filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
    }
    
    </style>
    If that doesn't fix it, try adding this red declaration in so it looks like this:

    Code:
    <style type="text/css">
    
    #dhtmltooltip{
    text-align:left;
    position: absolute;
    width: 250px;
    border: 0px solid black;
    padding: 2px;
    background-color: white;
    visibility: hidden;
    z-index: 100;
    /*Remove below line to remove shadow. Below line should always appear last within this CSS*/
    filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
    }
    
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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