Here is the code I have so far that basically makes a div element visible on a mouse over.
STYLE SHEET=======================================
div#links {font: 16px Verdana, sans-serif; }
div#links a:hover
{color: black; background: #AAA;}
div#links a span {display: none;}
div#links a:hover span
{display: block;
top: 18px; left: 0; width: 250px;
padding: 5px; margin: 10px;
color: black; background: #CCC;
font: 10px Verdana, sans-serif; text-align: left;
BORDER-LEFT: 1px outset;
BORDER-RIGHT: 1px outset;
BORDER-TOP: 1px outset;
BORDER-BOTTOM: 1px outset;
position: absolute;
z-index: 200;
}
HTML PAGE==================================
<table border="1" width="500">
<tr><td width="500">
<div id="links">
<a href=""><img src="bulb.jpg" border="0"><span>
MY TEXT...
</span></a>
</div>
</td></tr>
</table>
The problem I'm having is trying to find a div position that works for the page. If I do anything other than absolute postion, it screws w/the table size. If I get rid of the 'top' and 'left' positions, the div element shows up next to the image, but is off the page. Is there a way to get the element to show up near the tag w/out going off the page and w/out using javascript?
Thanks,
Greg
STYLE SHEET=======================================
div#links {font: 16px Verdana, sans-serif; }
div#links a:hover
{color: black; background: #AAA;}
div#links a span {display: none;}
div#links a:hover span
{display: block;
top: 18px; left: 0; width: 250px;
padding: 5px; margin: 10px;
color: black; background: #CCC;
font: 10px Verdana, sans-serif; text-align: left;
BORDER-LEFT: 1px outset;
BORDER-RIGHT: 1px outset;
BORDER-TOP: 1px outset;
BORDER-BOTTOM: 1px outset;
position: absolute;
z-index: 200;
}
HTML PAGE==================================
<table border="1" width="500">
<tr><td width="500">
<div id="links">
<a href=""><img src="bulb.jpg" border="0"><span>
MY TEXT...
</span></a>
</div>
</td></tr>
</table>
The problem I'm having is trying to find a div position that works for the page. If I do anything other than absolute postion, it screws w/the table size. If I get rid of the 'top' and 'left' positions, the div element shows up next to the image, but is off the page. Is there a way to get the element to show up near the tag w/out going off the page and w/out using javascript?
Thanks,
Greg