Results 1 to 6 of 6

Thread: HTML Tooltip Help Needed

  1. #1
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTML Tooltip Help Needed

    HTML Tooltip question ... anyone out here able to assist?

    I know what I need to do has to be pretty simple, but I am not a programmer. I'm an instructional designer trying to fix a problem in an online course that goes live in a couple days.

    Basically all I need to do is reposition where the tooltip pop-up sits on the screen. It's anchored to a position. And I have tested altering some of the number in code, but I can't get it move where I need it and function properly.

    For instance ... When I alter the .tooltip:hover span code to like a -325 on the margin setting, then it gets the pop-up placement where I need it (in my editing mode) ... but then when I publish the course live online, it acts like it's not there and it disappears.

    Got a fix for this anyone?

    Here's the code I inherited:

    Code:
    <style type="text/css">.tooltip {border-bottom: 1px dotted #475073;
    outline: none;
    cursor: help;
    text-decoration: none;
    position: relative;
    }text-decoration: none;
    color: #666;
    text-shadow: 0px 1px 0px rgba(255,255,255,.5); /* 50% white from bottom */
    } .tooltip:hover span {
    border-radius: 2px 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 2px 2px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 2px 2px rgba(0, 0, 0, 0.1); .tooltip span {
    margin-left: -999em;
    position: absolute;
    font-size: 12px;
    font-weight: normal; position: absolute; left: 1em; top: 2em; z-index: 99;
    margin-left: 0; width: 580px;
    } .tooltip:hover img {
    border: 0;
    margin: -3x 0 0 -55px;
    float: left;
    position: absolute;
    vertical-align: middle;
    }
    font-size: 14px;
    font-weight: bold;
    display: block;
    padding: 3px 3px 6px 0px;
    }
    
        html a:hover {
        background: transparent;
        } 
    
    .help {
    background: #eeeeee; /* Old browsers */
    .tooltip:hover strong {/* IE9 SVG, needs conditional override of 'filter' to 'none' */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VlZWVlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNkM2QzZDMiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, #eeeeee 0%, #d3d3d3 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#d3d3d3)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #eeeeee 0%,#d3d3d3 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #eeeeee 0%,#d3d3d3 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #eeeeee 0%,#d3d3d3 100%); /* IE10+ */
    background: linear-gradient(to bottom, #eeeeee 0%,#d3d3d3 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#d3d3d3',GradientType=0 ); /* IE6-8 */
    border: 1px solid #999;
    padding: 0.5em 0.8em 0.8em 2em;
    }     </style>
    Last edited by james438; 09-09-2014 at 05:14 AM. Reason: format

  2. #2
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    Post the URL please?
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  3. #3
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Deadweight View Post
    Post the URL please?
    I wish I could ... but it's in a password protected university course. So there isn't an open URL. It's inside of the ANGEL LMS platform (owned by Blackboard).
    Is there something more I can copy/paste out that would give you what you need?
    Thanks for trying to help.

  4. #4
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  5. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    There are errors in your code, so we can't expect it to function properly. See below:
    Code:
    <style type="text/css">
    .tooltip {border-bottom: 1px dotted #475073;
    outline: none;
    cursor: help;
    text-decoration: none;
    position: relative;
    }
    
    text-decoration: none; //WHERE'S THE ID OR CLASS PLUS OPENING '{'?
    color: #666;
    text-shadow: 0px 1px 0px rgba(255,255,255,.5); /* 50% white from bottom */
    } 
    
    .tooltip:hover span {
    border-radius: 2px 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 2px 2px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 2px 2px rgba(0, 0, 0, 0.1); //WHERE'S THE CLOSING '}'?
    
    .tooltip span {
    margin-left: -999em;
    position: absolute;
    font-size: 12px;
    font-weight: normal; position: absolute; left: 1em; top: 2em; z-index: 99;
    margin-left: 0; width: 580px;
    } 
    
    .tooltip:hover img {
    border: 0;
    margin: -3x 0 0 -55px;
    float: left;
    position: absolute;
    vertical-align: middle;
    }
    
    font-size: 14px; //WHERE'S THE ID OR CLASS PLUS OPENING '{'?
    font-weight: bold;
    display: block;
    padding: 3px 3px 6px 0px;
    }
    
    html a:hover {
        background: transparent;
        } 
    
    .help {
    background: #eeeeee; /* Old browsers */ //WHERE'S THE CLOSING '}'?
    
    .tooltip:hover strong 
    {/* IE9 SVG, needs conditional override of 'filter' to 'none' */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VlZWVlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNkM2QzZDMiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, #eeeeee 0%, #d3d3d3 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#d3d3d3)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #eeeeee 0%,#d3d3d3 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #eeeeee 0%,#d3d3d3 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #eeeeee 0%,#d3d3d3 100%); /* IE10+ */
    background: linear-gradient(to bottom, #eeeeee 0%,#d3d3d3 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#d3d3d3',GradientType=0 ); /* IE6-8 */
    border: 1px solid #999;
    padding: 0.5em 0.8em 0.8em 2em;
    }     
    
    </style>
    Last edited by molendijk; 09-10-2014 at 09:34 PM. Reason: Correction

  6. #6
    Join Date
    Sep 2014
    Location
    Bolton
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You didn't close
    Code:
    -moz-box-shadow: 2px 2px rgba(0, 0, 0, 0.1);
    Do you use Notepad++ ? If not try to use it, it helps a lot

    @edit:
    @up
    I didn't see, sorry...

Similar Threads

  1. Replies: 2
    Last Post: 07-23-2012, 05:45 AM
  2. Rich HTML Balloon Tooltip -Can tooltip be above the link?
    By CindyH in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 09-08-2011, 04:23 AM
  3. Rich HTML Balloon Tooltip > tooltip inside of another tooltip?
    By croceldon in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-24-2008, 03:35 PM
  4. tooltip help needed
    By ctrent in forum HTML
    Replies: 1
    Last Post: 06-19-2008, 05:24 PM
  5. URGENT HELP Needed With Textual tooltip FF1+ IE5+ Opr7+
    By Xposure in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-22-2005, 12:01 PM

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
  •