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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

horizontal centering of DIV

Status
Not open for further replies.

arunrr

Programmer
Oct 2, 2009
103
US
Hello,

Please see the following test URL...


A mouseover on 'TEST' and 'ODI' under 'Batting Records' displays the pop menu. However, i am having trouble aligning this menu. As you can see from the code, I have used "text-align:center" in multiple places (<TR> and <TD>) with no effect.

I have also tried "margin:0 auto".

This menu must display directly below the link where the mouseover if performed. Right now it is aligned to the left of the cell.

Thanks for your help,
Arun
 
The best recommendation I can give you is to not use tables for this. Consider positioning divs instead. You can also javascript the position of the cursor and snap the div the cursor position.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top