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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:04:54+00:00 2026-05-24T21:04:54+00:00

I have a centred web page (using margin: 0 auto; on a ‘wrapper DIV’)

  • 0

I have a centred web page (using margin: 0 auto; on a ‘wrapper DIV’) that has a long side-menu.
One page template needs a wide content area, so I am attempting to add a link at the top that will toggle showing the side menu (using jquery), so if clicked it will appear over the top of the main page content.

I can achieve this if I use ‘position: absolute;’ on the #sidemenucontainer DIV but if I use relative positioning (so it’s in the correct place relative to the centred layout ie: not stuck in the top left corner of the browser), then it pushes the main page content down to underneath the menu, rather than appearing ‘above’ the page.

I can prepare some sample code if required, but I was hoping the above made sense. I’m sure I’m missing something obvious.
Thanks!

  • 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-05-24T21:04:54+00:00Added an answer on May 24, 2026 at 9:04 pm

    Absolute means absolute in relation to the nearest relatively positioned parent div.

    By giving your wrapper a position of relative and your side menu a position of absolute you’ll be positioning the side menu within the wrapper.

    You’ll need the side menu positioned absolutely so that you can move it over the top of other items, in this case, the main content.

    Here’s a sample: http://jsfiddle.net/RLcFf/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that is fixed to the side of my web page.
I have a web page with a fixed 200px column on one side (contains
I have an app that has a centre view with two views off to
Does IE8 run in quirks mode like IE6/7? I have a webpage that has
I have a jQuery DOMWindow that's loaded with AJAX on one of my web
I have a wrap around my content on a webpage that has a width
I have a vertical layout that I want to remain centered on the page.
I have: I have several web pages both with this outline: <body> <div id=container>
I have a list of data that I need to display in a web
I've written a web page where the content sits within a fixed-width, centered div,

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.