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

  • SEARCH
  • Home
  • 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 996527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:53:22+00:00 2026-05-16T06:53:22+00:00

I would like to be able to hide the whole sidebar (navigation, search, toolbox)

  • 0

I would like to be able to hide the whole sidebar (navigation, search, toolbox) and reclaim the space. In other words, the page should widen to fill the space used by the sidebar.

I don’t want to do this for every page but only for specific pages, so preferably using a template.

I have got a template which hides the sidebar but, crucially, does not reclaim the space:

<css>
#column-content {margin: 0 0 .6em 0;}
#content {margin: 2.8em 0 0 0;}
#p-logo, .generated-sidebar,
#p-lang,
#p-tb,
#p-search {display:none;}
#p-cactions {left: .1em;}
#footer {display:none;}
</css>

This is using the PageCSS extension.

Anyone know I can I modify this to reclaim the space – or have another solution?

Update: After help from Adrian Archer (see below) I’ve discovered that the problem is in my customized skin. Reclaiming the space does work with Monobook. Anyone know what the particular part of the monobook skin is I need to copy? I’ve tried several things and I think it is in main.css but I’m not sure.

  • 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-16T06:53:22+00:00Added an answer on May 16, 2026 at 6:53 am

    Thanks to Adrian Archer’s help (see his response) + the hard work of a colleague, I have a working example (probably works for all skins). Create a template (e.g. Template:Hide sidebar) with these contents:

    <css>
    #column-content {margin: 0 0 .6em 0;}
    #content {margin: 2.8em 0 0 0;}
    #p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search {
       display:none;
    }
    #p-cactions { left: .1em; }
    #footer { display:none; }
    #mw_content { margin-left:0.2em; }
    </css>
    

    Then just add {{Hide sidebar}} to any page you require it. The sidebar area will be reclaimed by the page. This difference with my question is the second to last line: #mw_content { margin-left:0.2em; }

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

Sidebar

Related Questions

I would like to be able to hide another application's window from the taskbar,
I have several DIVs on my page that I would like to be able
Would like to be able to set colors of headings and such, different font
I would like to be able to change the size of text in a
I would like to be able to abort a specific sql statement if it
I would like to be able to add a new SQL LOGIN and name
I would like to be able to get a list of all possible files
I would like to be able to automate data entry to an Open Office
I would like to be able to use the same Session variable when transferring
I would like to be able to spawn a linux process that would only

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.