PDA

View Full Version : Tooltips...



Mickword
20-06-2010, 07:52 PM
hey right so I am making tooltips, and I need it too look like this:

http://img820.imageshack.us/img820/1319/help1.png

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

http://img690.imageshack.us/img690/4408/help2s.png

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


<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=gra y,direction=135);
}

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

</style>

LMS16
20-06-2010, 08:28 PM
if its not needed to expand use


background: url(link/toimage.png);

Lew,.

Mickword
20-06-2010, 09:27 PM
Thanks but it didn't work.

Joe!
20-06-2010, 10:22 PM
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.

Apolva
20-06-2010, 10:29 PM
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)

Moh
20-06-2010, 11:12 PM
If I was you, I'd just recode the html lol

LMS16
20-06-2010, 11:55 PM
<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: progid:DXImageTransform.Microsoft.Shadow(color=gra y,direction=135);
}

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

</style>

Try that :)

Lew.

Mickword
21-06-2010, 06:51 AM
Ok, right most of that worked thanks. :D Thanks all.

Want to hide these adverts? Register an account for free!