Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8458447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:05:01+00:00 2026-06-10T13:05:01+00:00

I am making a web page that needs a header (on top) and a

  • 0

I am making a web page that needs a header (on top) and a left aligned menu (below the header) and content to the right of that menu.

The problem I am facing is that I want to use (with elements and floats) rather than to create the struture of the page however, whenever I resize the browser window the content element floats down under the menu. I want the content to stick to the right of the left floating menu.

Any one got any ideas how I can fix this?

my html code has this structure:

 <div id="menu">
    <a href="#">menu #1</a>
    ...
    ...
    ...
 </div>
 <div id="subcontent">
    text or whatnot...
 </div>

Css file look like this:

 #menu
 {
    width: 200px;
    float: left;
 }

 #subcontent
 { 
      width: 800px;
      float: left;   
 }

PS I have tried changing pixels to % but with no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:05:04+00:00Added an answer on June 10, 2026 at 1:05 pm

    You will need an outer container.

    Simply try wrapping both elements in a div of width 1000px

    <div class="outer">
        <div id="menu">
            <a href="#">menu #1</a>   
        </div>
        <div id="subcontent">    
        </div>
    </div>
    
    
    .outer{width: 1000px;}
    #menu
    {
        width: 200px;
        float: left;
    }
    
    #subcontent
    { 
        vertical-align: top;
        width: 800px;
        float: left;   
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a web page in that I have used Ajax calendar to
I'm making a mobile web app. At the top of the page, I have
I have a ASP.NET web page that needs to make a SQL Server call
Im making a web page that has a 'fullscreen mode'. Its a normal web
I am making a content script that does something with the google results webpage.
hello I am making web page searching program with windows batch file before searching
Im making an 'app like' web page. The actual page is wider than the
What is best way for making a draw panel in a web page. I
I'm making a web-app with PhoneGap. Here's my current hurdle: On page one, the
I'm making a RESTful web service call in my JavaScript page and get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.