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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:44:10+00:00 2026-06-07T03:44:10+00:00

So, I’m having trouble with a layout. I would like to have the sidebar

  • 0

So, I’m having trouble with a layout. I would like to have the sidebar reach 100% of the content’s height. I’ve tried tricks other people gave and they didn’t work. I don’t know if it’s because my page layout is slightly different or something but yeah…

The code:

<div id="page">
    <div id="top">
       <div id="topwidth">
             this is a top bar
       </div>
   </div>
   <div id="leftmenu">
        this is a fixed floating menu to the left
   </div>
   <div id="wrapper">
    <div id="maincontent">
        <div class="post">
                         This is my content area. multiple post divs will be here
        </div>
    </div><!-- Main Content-->
    <div id="sidebar">
                Yep... this is where the trouble is; It won't go 100%.
    </div> <!-- Sidebar -->
    <div id="clearfix">
        ...I tried this.
    </div>
</div> <!-- Wrapper -->
<div id="footer">
    This is my footer, it's 100% the width of the page.         
</div> <!-- Footer -->
</div> <!-- Page -->

and the css:

* {
margin:0px;
padding:0px;
border:0px;
outline:0px;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
cursor:default;
}

a {
transition: color 1s;
-moz-transition: color 1s; /* Firefox 4 */
-webkit-transition: color 1s; /* Safari and Chrome */
-o-transition: color 1s; /* Opera */
}

html {
height:100%;
width:100%;
}

body {
height:100%;
width:100%;
overflow-y: scroll;
}

#page {
width:100%;
display:block;
background-color:#FFF;
    background-image: -moz-linear-gradient(left , #BCBCBC 0%, #FFFFFF 10%,     #FFFFFF 90%, #BCBCBC 100%);
        background-image: -webkit-gradient(
            linear,
            left top,
            right top,
            color-stop(0, #BCBCBC),
            color-stop(0.1, #FFFFFF),
            color-stop(0.9, #FFFFFF),
            color-stop(1, #BCBCBC)
    );
}

#top {
background-color:#6666ff;
border-bottom:1px solid #3333ff;
height:39px;
width:100%;
z-index:99;
position:fixed !important;
box-shadow:0px 5px 10px rgba(50, 50, 50, 0.5);
}

#wrapper {
margin:0px auto;
padding-top:50px;
width:950px;
text-align:center;
}

#leftmenu {
margin-left:-75px !important;
z-index:98;
height:100%;
width:75px;
text-align:center;
position:fixed;
border-right:15px solid #999fff;
display:block;
background-color:#FFF;
    background-image: -moz-linear-gradient(left , #f5f5f5 0%, #f5f5f5 95%, #e5e5e5 100%);
        background-image: -webkit-gradient(
            linear,
            left top,
            right top,
            color-stop(0, #e5e5e5),
            color-stop(0.5, #f5f5f5),
            color-stop(0.95, #f5f5f5),
            color-stop(1, #e5e5e5)
    );
background-repeat:no-repeat;
box-shadow:0px 0px 10px rgba(50, 50, 50, 0.5);
transition: margin-left 0.3s;
-moz-transition: margin-left 0.3s; /* Firefox 4 */
-webkit-transition: margin-left 0.3s; /* Safari and Chrome */
-o-transition: margin-left 0.3s; /* Opera */
}

#header:hover {
margin-left:0px !important;
}
#maincontent {
width:625px;
height:100%;
float:left;
position:relative;
}

#clearfix {
width:100%;
clear:both;
}

#sidebar {
width:300px;
height:100%;
margin-top:5px;
position:relative;
float:right;
}

#footer {
text-align:center;
clear:both;
height:100%;
width:100%;
padding-top:10px;
background-image: -moz-linear-gradient(top, rgba(255,255,255,0.001) 0%, rgba(255,255,255,1) 100%);
        background-image: -webkit-gradient(
            linear,
            left top,
            left bottom,
            color-stop(0,rgba(255,255,255,0.001)),
            color-stop(1,rgba(255,255,255,1))
        );
}
  • 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-07T03:44:11+00:00Added an answer on June 7, 2026 at 3:44 am

    I think this is what you were looking to do?

    CSS:

        * {
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
        }
    
    a {
        transition: color 1s;
        -moz-transition: color 1s; /* Firefox 4 */
        -webkit-transition: color 1s; /* Safari and Chrome */
        -o-transition: color 1s; /* Opera */
        }
    
    html {
        background-color: #FFF;
        background-image: -moz-linear-gradient(left , #BCBCBC 0%, #FFFFFF 10%,     #FFFFFF 90%, #BCBCBC 100%);
        background-image: -webkit-gradient(
            linear,
            left top,
            right top,
            color-stop(0, #BCBCBC),
            color-stop(0.1, #FFFFFF),
            color-stop(0.9, #FFFFFF),
            color-stop(1, #BCBCBC)
            );
        height: 100%;
        width: 100%;
        }
    
    body {
        height: 100%;
        overflow-y: scroll;
        position: relative;
        width: 100%;
        }
    
    #footer {
        background: #ccc;
        clear: both;
        min-height: 150px;
        padding-top: 10px;
        text-align: center;
        }
    
    #header {
        background-color: #6666ff;
        border-bottom: 1px solid #3333ff;
        box-shadow: 0px 5px 10px rgba(50, 50, 50, 0.5);
        height:39px;
        position:fixed;
        width:100%;
        z-index:99;
        }
    
    #leftmenu {
        margin-left:-75px;
        height:100%;
        width:75px;
        text-align:center;
        position:fixed;
        border-right:15px solid #999fff;
        display:block;
        background-color:#FFF;
            background-image: -moz-linear-gradient(left , #f5f5f5 0%, #f5f5f5 95%, #e5e5e5 100%);
                background-image: -webkit-gradient(
                    linear,
                    left top,
                    right top,
                    color-stop(0, #e5e5e5),
                    color-stop(0.5, #f5f5f5),
                    color-stop(0.95, #f5f5f5),
                    color-stop(1, #e5e5e5)
            );
        background-repeat:no-repeat;
        box-shadow:0px 0px 10px rgba(50, 50, 50, 0.5);
        transition: margin-left 0.3s;
        -moz-transition: margin-left 0.3s; /* Firefox 4 */
        -webkit-transition: margin-left 0.3s; /* Safari and Chrome */
        -o-transition: margin-left 0.3s; /* Opera */
        z-index:98;
        }
    
    #maincontent {
        background: #ccc;   
        float: left;
        position: relative;
        width:950px;
        }
    
        #maincontent .post {
            background: #eee;
            width:625px;
            }
    
    #sidebar {
        background: #f00;
        bottom: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 300px;
        }
    
    #wrapper {
        height: 100%;
        margin:0px auto;
        padding-top:50px;
        width:950px;
        }
    

    HTML:

    <div id="header">
        HEADER
    </div>
    
    <div id="leftmenu">
        this is a fixed floating menu to the left
    </div>
    
    <div id="wrapper">
    
        <div id="maincontent">
            <div class="post">
                This is my content area. multiple post divs will be here
            </div>
    
            <div class="post">
                This is my content area. multiple post divs will be here
            </div>
    
            <div class="post">
                This is my content area. multiple post divs will be here
            </div>
    
            <div class="post">
                This is my content area. multiple post divs will be here
            </div>
    
            <div class="post">
                This is my content area. multiple post divs will be here
            </div>                                      
    
            <div id="sidebar">
                Yep... this is where the trouble is; It won't go 100%.
            </div>                                              
    
        </div><!--maincontent-->
    
    </div><!--wrapper-->
    
    <div id="footer">
        FOOTER
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I would like to count the length of a string with PHP. The string
I would like to run a str_replace or preg_replace which looks for certain words
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't

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.