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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:23:33+00:00 2026-05-25T02:23:33+00:00

I am really stuck on this with no more ideas to try in mind…I

  • 0

I am really stuck on this with no more ideas to try in mind…I have looked and tried everything and don’t know what else to do here…

Basically I am try to keep a menu div side by side to the webpage AND keep it all centred.

Initially I had the menu and the other contents side by side using float left and then to centre it I did padding left..However as you might have guessed this totally fails when you are viewing your site from different computers with different screen resolutions…

So then I went back to point A of trying to center this stuff but now my menu is on top and so I dont know how to force them side by side…

Furthermore I am told to extend the logo over the menu….I don’t know what to do now as I am stuck. I really hate this right now, my mind is going berserk I have been at this for 16 hours….

pastebin.com/2ng4WJQT
pastebin.com/4Cr0Z5Tk

How it currently looks:

enter image description here

How its supposed to look…

enter image description here

  • 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-25T02:23:34+00:00Added an answer on May 25, 2026 at 2:23 am

    Putting your header, content and sidebar in a container which is centered will sort this out.

    The CSS will be something like:

    #container
    {
    width: 900px;
    margin:0 auto;
    }
    
    #menu, #content
    {
    float:left;
    }
    
    #menu{width:20%;}
    #content{width:80%;}
    

    UPDATE

    Here’s a demo: http://jsfiddle.net/nMUVj/

    HTML

    <div id="container">
        <div id="header">Header content</div>
        <div id="nav">Nav bar</div>
        <div id="content">Main Content</div>
    </div>
    

    CSS

    #container
    {
        width:70%;
        margin:0 auto;
        border:1px solid blue;
        padding:0;
    }
    
    #nav, #content{float:left; border:1px solid green;margin:0;}
    
    #nav{width:20%;}
    #content{width:79%;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been stuck on this and don't really know how to go about
I realize this question is pretty basic, but I'm really stuck. I have a
I'm really stuck trying to use java wrapper library for opencv's cvMatchTemplate. See this
I've been stuck on this for a couple of days now, and I'm really
Hey, I'm really stuck with my project here... I need to know when any
OK, I have googled and googled some more and I am stuck. I am
This struck me as really weird behaviour and I spent a while checking for
I'm really stuck on why the following code block 1 result in output 1
I'm really stuck trying to find out how to force a programmatic refresh of
I am really hoping someone can help me out, because I'm really stuck on

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.