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 8947687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:49:45+00:00 2026-06-15T12:49:45+00:00

I have a page with an absolutely positioned menu (because it needs to be

  • 0

I have a page with an absolutely positioned menu (because it needs to be in a certain place, never mind what’s under it). How do I make that page resize to contain the menu?
I’ve made an example of the problem on jsFiddle, although no Javascript is used and I’d prefer not to use it.

What, I need to include the code? Fine… nicer example on jsFiddle

#container {float: left; width: 500px;}
#content {float: right; width: 300px; height: 100px;}
#menu {position: absolute; width: 100px; height: 350px;}
<div id="container">
    <div id="content">Content</div>
    <div id="menu">Menu</div>
</div>
  • 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-15T12:49:46+00:00Added an answer on June 15, 2026 at 12:49 pm

    Since you are using absolute positioning on the menu, it doesn’t affect the height of the parent container.

    Use min-height on the #container like this:

    #container {
        background: #ff00ff;
        float: left;
        width: 500px;
        padding: 10px;
        min-height: 350px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a floating menu(absolutely positioned) that stays in view as the user scrolls
I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu)
I have to modify a HTML page because the menu doesn't work with IE6/IE7/IE8.
I want a scrolling menu that begins at a certain part of the page
I have an element in a page which is absolute positioned using TOP and
I have three Divs on the page and they are absolute positioned. Lets call
I have an absolute URL, and the URL that a link on that page
I have a menu on a web page and I want to add some
I have an iframe that loads a page that I would like to disable
I have an iframe that loads a page that I would like to disable

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.