HTML question

Trying to control a header.  Wrote an asp.net user control which is nothing but an html table and rows are added dynamically based on an ado reader.  The user control is a menu the drops down a list relative to what the user hovers via java script mouseover and mouseout.  Pretty much standard menu stuff.  

What I want to do know is place it on default page in the top center.  The problem I have is when I place it in a table or a div (the user control) the div or table expands to length of the drop down menu.  When this happened everything gets pushed down and the page gets distorted.
How can I keep this from happening?

Below is some code I have to date.



<body class="body">
            <div align="center" id="headerDiv" style= "MARGIN-TOP: 0px; DISPLAY: block; FLOAT: left; WIDTH: 765px; HEIGHT: 67px; BACKGROUND-COLOR: #f2f2f1">
                  <div id="MainHeader">
                        <P><uc1:headermenu1 id="HeaderMenu11" runat="server" ></uc1:headermenu1></P>
                  </div>
            </div>
            <form class="table" id="Form1" method="post" runat="server">
            </form>
      </body>
Rickyc1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
<div align="center" id="headerDiv" style= "MARGIN-TOP: 0px;.....

wrong syntax, please remove the spaces arround =
Rickyc1Author Commented:

Didn't help.  

How can I put a user control in a container and have the container fix in length?  So when the user control opens it doesn't expand the container its in?
Or should I have a totally different approach?
ahoffmannCommented:
sorry, I don't understand what your mean 'cause your posted code in't 100% HTML
It also misses the CSS settings you used.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.