Results 1 to 8 of 8

Thread: Tooltips...

  1. #1
    Join Date
    Jun 2008
    Location
    England, On a beach somewhere
    Posts
    2,483
    Tokens
    691

    Latest Awards:

    Default Tooltips...

    hey right so I am making tooltips, and I need it too look like this:



    but when ever i do it, it looks like this:



    So basically I need the edges to curve. and a 2 pixel padding thing. heres the code for it:

    Code:
    <script language="JavaScript1.2" type="text/javascript" src="img/menu/mm_menu.js"></script>
    <style type="text/css">
    
    #dhtmltooltip{
    position: absolute;
    left: -300px;
    width: 150px;
    border: 1px solid #666666;
    padding: 4px;
    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);
    }
    
    #dhtmlpointer{
    position:absolute;
    left: -100px;
    z-index: 100;
    visibility: hidden;
    }
    
    </style>

  2. #2
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    if its not needed to expand use

    background: url(link/toimage.png);
    Lew,.
    Im not here to be loved, I love to be hated :-}


  3. #3
    Join Date
    Jun 2008
    Location
    England, On a beach somewhere
    Posts
    2,483
    Tokens
    691

    Latest Awards:

    Default

    Thanks but it didn't work.

  4. #4
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;

    You can use these CSS properties to manipulate the rounding of the corners, hope this helps.
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


  5. #5
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    If you need it to look just like your example picture, use 8 nested divs (each with no padding/margin) and set separate backgrounds on each one (eg. top left, top, top right)

  6. #6
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    If I was you, I'd just recode the html lol

  7. #7
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    <script language="JavaScript1.2" type="text/javascript" src="img/menu/mm_menu.js"></script>
    <style type="text/css">

    #dhtmltooltip{
    position: absolute;
    left: -300px;
    width: 150px;
    height: 150px;
    background: url(link/to/image.png) no-repeat;
    border: 1px solid #666666;
    padding: 4px;
    visibility: hidden;
    z-index: 100;
    /*Remove below line to remove shadow. Below line should always appear last within this CSS*/
    filter: progidXImageTransform.Microsoft.Shadow(color=gray,direct ion=135);
    }

    #dhtmlpointer{
    position:absolute;
    left: -100px;
    z-index: 100;
    visibility: hidden;
    }

    </style>
    Try that

    Lew.
    Im not here to be loved, I love to be hated :-}


  8. #8
    Join Date
    Jun 2008
    Location
    England, On a beach somewhere
    Posts
    2,483
    Tokens
    691

    Latest Awards:

    Default

    Ok, right most of that worked thanks. Thanks all.

Posting Permissions

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