Avatar of Rickyc1
Rickyc1
 asked on

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>
HTML

Avatar of undefined
Last Comment
ahoffmann

8/22/2022 - Mon
ahoffmann

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

wrong syntax, please remove the spaces arround =
Rickyc1

ASKER

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?
ASKER CERTIFIED SOLUTION
ahoffmann

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy