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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:35:53+00:00 2026-06-12T08:35:53+00:00

I am trying to setup a template with HTML and CSS and I am

  • 0

I am trying to setup a template with HTML and CSS and I am having trouble with my sidebar. It seems to be getting pushed below my content although it is to the left like it should be. I can’t figure out why? Does anyone have any suggestions?

Example: http://jsfiddle.net/zDdfn/

HTML:

<head>
<title>working</title>

<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container"> 

    <div id="banner">  </div> <!-- End banner div -->

    <div id="navcontainer">     
        <ul id="navlist">
            <li><a href="index.php">HOMEPAGE</a></li>
            <li><a href="about.php">ABOUT</a></li>
            <li><a id="current" href="index.php">HOMEPAGE</a></li>
            <li><a href="index.php">HOMEPAGE</a></li>
        </ul>
    </div> <!-- End navcontainer div -->



    <div id="content">main content
     </div> <!-- End content div -->


    <div id="sidebar"> sidebar content
    </div> <!-- End sidebar div -->



    <div id="footer"> foooter </div> <!-- End footer div -->



</div> <!-- End container div -->

</body>

and CSS

html, body {
    height: 100%; /* Required */
    }

body {
    margin : 0;
    padding : 0;

    font : 75% "Trebuchet MS", verdana, arial, tahoma, sans-serif;
    line-height : 1.8em;
    color : #000000;
    background : #F5F5FF; 
    }

#container {

    position: relative;
    min-height: 100%;
    width : 800px;
    margin : 0 auto 0 auto;
    border-style: solid;
    border-width:1px;
    background : #FFFFCC;
    }




#banner {

    color : #000000;
    border-style: solid;
    border-width:1px;
    height : 150px;
    background : #fff
    }    



#content {
    min-height: 100%;
    float:right
    padding : 10px;
    margin-left : 200px;
    margin-bottom : 10px;
    color : #666;
    background : #F5EBCC;
    border-left-style:dotted;
    border-left-color:#8F8F00;
    border-bottom-style:dotted;
    border-bottom-color:#8F8F00;
    }



#sidebar {

    float : left;
    width : 20px;

    padding : 10px;

    color : #000000;

    border-style: solid;
    border-width:1px;
    }


#footer {
    clear:both;
    position:relative;
    bottom: 0;
    width: 800px;
    background : #FFFFCC;
    } 

#navcontainer {
    background:#E0E066;

    }

#navlist {
    list-style: none;   /* list-style: none removes bullets */
    margin: 0px;
    padding : 0.5em 0;
    }

#navlist li {
    display: inline;
    margin : 0;
    }

#navlist li a {
    padding : 0.5em 0.5em;
    margin: 0;
    color : #000;
    background : #B8B800;
    text-decoration : none;
    }

#navlist li a:hover {
    color : yellow; 
    background : #8F8F00 url(img/menu_arrow.gif) bottom center no-repeat;
    }

#navlist li a#current {
    color :  #fff;
    background : #8F8F00 url(img/menu_arrow.gif) bottom center no-repeat;
    }
  • 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-12T08:35:54+00:00Added an answer on June 12, 2026 at 8:35 am

    Switching the order of your #content and #sidebar div tags in the HTML will solve this as you are using the opposing float technique: http://jsfiddle.net/vrdZZ/

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

Sidebar

Related Questions

I have some trouble trying to setup a template to solve address this situation:
I am trying to setup an environment which would let me use a template
I'm trying to setup Ember.js with Rails 3.1 and I'm getting the following error
I'm trying to setup my charset in a html view in a RoR application.
Trying to setup a personal image upload/downloader webpage. I've viewed the msdn article on
Trying to setup a CodeIgniter based project for local development (LAMP stack), and once
Trying to setup some validation on the add to cart button for the dropdown
Trying to setup and get going with the RestKit library for a cocoa project
Im trying to setup my asp.net mvc page like the following image: The header
I have been trying to setup git for our web development team unsuccessfully. Some

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.