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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:43:48+00:00 2026-05-23T08:43:48+00:00

So I have been trying to put a div side by side here but

  • 0

So I have been trying to put a div side by side here but I have run out of options.

<div id='body'>
  <div id='header'>

  </div>
  <div id='container'>
    <div id='navigation'></div>
    <div id='content'>
       <div id='shoutout-box'></div>
    </div>

  </div>
</div>

I want the header to span the entire browser’s width while the container is suppose to show up below the header. The navigation should be side-by-side with the content. Inside the content, I want the shoutout-box to be contained in the content’s div but span the entire width of content’s div. Is this possible?

  • 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-23T08:43:49+00:00Added an answer on May 23, 2026 at 8:43 am

    When organising div layout my favourite trick is to use borders on the containers
    to see visually where they “land” on the page, I’ve added this in my example code.

    The trick of getting containers side by side is to use the css float property. This has been added to the <div id='navigation'> css properties. Note that following divs after a floated div will also float. Use the css clear property to put that div back “inline” (make it not float). As an example, take out the notneeded css and watch how the footer jumps to the side of the contents container).

    <head>
        <style type="text/css">
            body { background: #dddddd; }
            div#body { border: 1px solid red; }
            div#container { border: 1px solid black; }
            div#navigation { border: 1px solid green; float: left; }
            div#content { border: 1px solid blue; float: left; width: 900px; }
            div#shoutout-box { border: 1px solid yellow; }
            div#notneeded { clear: left; }
        </style>
    </head>
    <body>
    <div id='body'>
        <div id='header'>Header</div>
        <div id='container'>
           <div id='navigation'>Nav here</div>
           <div id='content'>
              <div id='shoutout-box'>Shoutout box</div>
              Content Div contents here
           </div>
           <div id="notneeded">&nbsp;</div>
        </div>
    </div>
    <div id='footer'>footer</div>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying out the Susy plugin for Compass ( SASS ), but
Ok, so i have been trying to put everyone one of my classes in
I know there have been plenty of questions about this, but I've been trying
I have been trying out some LINQ query can someone please show how to
I have been trying for a while now trying to figure out how to
I have been trying to understand how to create a MIB : here what
I have been trying to learn from reading tutorials online and stuff but I
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I have been trying to find a really fast way to parse yyyy-mm-dd [hh:mm:ss]
I have been trying to determine a best case solution for registering a COM

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.