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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:45:28+00:00 2026-05-23T16:45:28+00:00

So my CSS layout was all fine until I wanted to add some into

  • 0

So my CSS layout was all fine until I wanted to add some into the content area of my web page.

What I’m trying to add into the content section is a wrapper box which contains a graph on the left and a bunch of little info boxes on the right, and potentially an info area underneath those two with 100% width of the content box.

But as soon as I add that in, it pushes my User Info div down below Content. =/ So I guess what’s asking is how to create containers of divs within my content section that won’t affect things like my sidebar?

Here’s my code:

        <div id="wrapper">
                <div id="header"> </div><!-- #header-->
            <div id="nav"> </div>
            <div id="middle">
                <div id="container">
                    <div id="content"><!-- content -->
                        <div id='containerGraph'>
                           <div id='sngAnimals'></div>
                           <div id='graph'><img src='./lib/pChart2.1.1/examples/chartAnimalKillsPerDay.php' width='x' height='y' id='graphImg'/></div>
                           <div id='bottomCont'></div></div>
                    </div><!-- #content-->
                </div><!-- #container-->
                <div class="sidebar" id="sideLeft">
                    User info
                </div><!-- .sidebar#sideLeft -->
            </div><!-- #middle-->
        </div><!-- #wrapper -->

And the css:

* {
    margin: 0;
    padding: 0;
}
html {
    height: 100%;
}
body {
    font: 12px/18px Arial, Tahoma, Verdana, sans-serif;
    width: 100%;
    height: 100%;
    background-image:url('/mcimages/bg.png');
}
#wrapper {
    width: 1000px;
    margin: 0 auto;
    min-height: 100%;
    height: auto !important;
    height: 100%;
    color: white;
}

/* Middle
-----------------------------------------------------------------------------*/
#middle {
    width: 100%;
    padding: 0 0 100px;
    height: 1%;
    position: relative;

}
#middle:after {
    content: '.';
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}
#container {
    width: 100%;
    float: left;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;

}
#content {
    padding: 10px 0 10px 195px;
    background: #666666;

}

#containerGraph {
border-style:solid;
border-width:5px;
width: 75%;
position:relative;

}

#graph {
width: 249px;
height: 210px;
border-style:solid;
border-width:5px;
position: relative;
float:left;


}

#sngAnimals {
width:50%;
height: 210px;
border-style:solid;
border-width:5px;
position: relative;
float:right;

}

#bottomCont{
position: relative;
clear:both;
}
 }

/* Sidebar Left
-----------------------------------------------------------------------------*/

#sideLeft {
    float: left;
    width: 175px;
    margin-left: -100%;
    position: relative;
    margin-top: 10px;
    padding-left: 5px;
    padding-top: 10px;
    border-right-style: solid;
    border-right-color: black;
    border-right-width: 1px;
}

#friend {
    float: left;
    background: #B5AAFF;
    border:1px solid;
    position: relative;
    top:5px;
    left:0px;
    margin-left:10px;
    width:175px;
    height:175px;
}

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-23T16:45:28+00:00Added an answer on May 23, 2026 at 4:45 pm

    You didn’t close a div and your CSS had errors as well:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <meta name="description" content="A short description." />
            <meta name="keywords" content="put, keywords, here" />
            <title>CraftLink</title>
            <link rel="stylesheet" href="style.css" type="text/css" media="screen, projection" />
        </head>
        <body>
            <div id="wrapper">
                <div id="header">HEADER CONTENT</div><!-- #header-->
                <div id="nav">
                    <a href="#">Nav item 1</a>
                    <a href="#">Nav item 2</a>
                    <a href="#">Nav item 3</a>
                    <a href="#">Nav item 4</a>
                </div>
                <div id="middle">
                    <div id="container">
                        <div class="sidebar" id="sideLeft">USER INFO GOES HERE.</div><!-- .sidebar#sideLeft -->
                        <div id="content"><!-- content -->
                            <div id='containerGraph'>
                                <div id='sngAnimals'></div>
                                <div id='graph'><img src='./lib/pChart2.1.1/examples/chartAnimalKillsPerDay.php' width='x' height='y' id='graphImg'/></div>
                                <div id='bottomCont'></div>
                            </div>
                        </div><!-- #content-->
                    </div><!-- #container-->
                </div><!-- #middle-->
            </div><!-- #wrapper -->
    
            <!-- #footer -->
            <div id="footer">
                <h1>Footer Stuff</h1>
            </div>
        </body>
    </html>
    

    The CSS:

    * {
        margin: 0;
        padding: 0;
    }
    html {
        height: 100%;
    }
    body {
        font: 12px/18px Arial, Tahoma, Verdana, sans-serif;
        width: 100%;
        height: 100%;
        background-image:url('/mcimages/bg.png');
    }
    a {
        color: white;
        outline: none;
        text-decoration: underline;
    }
    a:hover {
        text-decoration: none;
    }
    p {
        margin: 0 0 18px
    }
    img {
        border: none;
    }
    input {
        vertical-align: middle;
    }
    #wrapper {
        width: 1000px;
        margin: 0 auto;
        min-height: 100%;
        height: auto !important;
        height: 100%;
        color: white;
    }
    
    
    /* Header
    -----------------------------------------------------------------------------*/
    #header {
        height: 100px;
        background: #999999;
        text-align: center;
        font-size: 200%;
    }
    #nav {
        height: 25px;
        background: #555555;
        text-align: center;
    }
    
    /* Middle
    -----------------------------------------------------------------------------*/
    #middle {
        width: 100%;
        padding: 0 0 100px;
        height: 1%;
        position: relative;
    
    }
    #middle:after {
        content: '.';
        display: block;
        clear: both;
        visibility: hidden;
        height: 0;
    }
    #container {
        width: 100%;
        float: left;
        overflow: hidden;
        margin-top: 10px;
        margin-bottom: 10px;
    
    }
    #content {
        padding: 10px 0 10px 195px;
        background: #666666;
    
    }
    
    #containerGraph {
        border-style:solid;
        border-width:5px;
        width: 75%;
        position:relative;
    }
    
    #graph {
        width: 249px;
        height: 210px;
        border-style:solid;
        border-width:5px;
        position: relative;
        float:left;
    }
    
    #sngAnimals {
        width:50%;
        height: 210px;
        border-style:solid;
        border-width:5px;
        position: relative;
        float:right;
    
    }
    
    #bottomCont{
        position: relative;
        clear:both;
    }
    
    /* Sidebar Left
    -----------------------------------------------------------------------------*/
    
    #sideLeft {
        float: left;
        width: 175px;
        position: relative;
        margin-top: 10px;
        padding-left: 5px;
        padding-top: 10px;
        border-right-style: solid;
        border-right-color: black;
        border-right-width: 1px;
    }
    
    #friend {
        float: left;
        background: #B5AAFF;
        border:1px solid;
        position: relative;
        top:5px;
        left:0px;
        margin-left:10px;
        width:175px;
        height:175px;
    }
    
    /* Footer
    -----------------------------------------------------------------------------*/
    #footer {
        width: 1000px;
        margin: -100px auto 0;
        height: 100px;
        background: #BFF08E;
    }
    
    /* Progress bar
    ----------------------------------------------------------------------------*/
    
    .meter-wrap{
        position: relative;
    }
    
    .meter-wrap, .meter-value, .meter-text {
        /* The width and height of your image */
        width: 155px; height: 30px;
    }
    
    .meter-wrap, .meter-value {
        background: #3D352A url(/path/to/your-image.png) top left no-repeat;
    }
    
    .meter-text {
        position: absolute;
        top:0; left:0;
    
        padding-top: 5px;
    
        color: #fff;
        text-align: center;
        width: 100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a CSS layout where the page looks like it's
I've been coding a webapp for some time now and all the layout, css
I'm using a fairly basic vertically expanding page layout in CSS, and I'm trying
what is the best way to ensure css/layout code works on all browsers? my
I have an annoying CSS layout problem. I'm trying to float images on a
I'm trying to get this css layout to work with IE7 and I'm a
I'm trying to accomplish the following layout, http://www.rae-mx.com/test/css-layout.jpg and I'm almost there, except for
<head runat=server> <title><asp:ContentPlaceHolder ID=TitleContent runat=server /></title> <link href=../../Content/css/layout.css rel=stylesheet type=text/css /> <script type=text/javascript src=/Areas/CMS/Content/js/jquery-1.3.2.min.js></script>
First of all, my whole web site works fine. All the pages, up to
I am trying to layout a header for a web site and I would

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.