Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

positioning Div

Status
Not open for further replies.

vlitim

Programmer
Joined
Sep 2, 2000
Messages
393
Location
GB
I have a page that is generated dynamically where the table could be like

<table>
<tr><td>1</td><td>GO</td></tr>
<tr><td>2</td><td>GO</td></tr>
<tr><td>3</td><td>GO</td></tr>
<tr><td>4</td><td>GO</td></tr>
<tr><td>5</td><td>GO</td></tr>
</table>

when I click GO I want a DIV to be displayed just below the GO button you are clicking on. I can get a div to hide/display when the link is clicked but can't figure out how to make it appear where the mouse is clicked???

Cheers
Tim


 
<div id="someid" onclick="javascript_to_hide/display()">

just a though...
 
If you put your hidden div into the <td></td> where you will be clicking, it will appear there. If you have the div anywhere else on the page you can absolutely position it via CSS to be where you want it. You will have to do it separately for every div though. You could use JavaScript to position it exactly where you clicked. For that, ask in JavaScript forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top