View Single Post
  #6 (permalink)  
Old 10-19-2006, 03:46 PM
kenaron kenaron is offline
WebProWorld New Member
 
Join Date: Aug 2006
Posts: 7
kenaron RepRank 0
Default

If anyone cares, I figured it out. I don't think it's possible to automatically do this, but a quick calculation does the trick...

Subtract the header width from the dropdown width and divide the result by two.

Set the margin-left to the negative of that value, and the dropdown will center under the header.

For example, if the header is 100px and the dropdown is 130px, set margin-left:-15px;

Ken
Reply With Quote