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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:05:13+00:00 2026-06-16T13:05:13+00:00

After the header I have one div which contains two others, which are next

  • 0

After the header I have one div which contains two others, which are next to each other. I want to create a border between them. I’ve tried to use the right border of the left div or the left border of the right div, but they don’t work right.

The right div can have much content, so I have to do overflow: hidden for it, so I can scroll the page. But if I have only little content, the div will not fill the entire page vertically, so the left border will be to small. Here -> http://www-user.tu-cottbus.de/~carbusor/Red%20Diamond/html/index.html you can see what I’m talking about.

When the right div increases vertically, I want the border to go to the bottom, to follow it’s size.

HTML:

<div id="wrapper">
        <div id="leftsidebar">
            <form id="logoutForm" action="index.html">
                <h1 id="login_title">Logout</h1>
                <fieldset id="actions">
                    <input id="logout" type="submit" value="Log out" />
                </fieldset>
            </form>
        </div>
        <div id="main">
            <span id="location">Home</span>
            <a href="member_news.html" class="normal_link">News</a>
        </div>
    </div>

CSS:

div#wrapper{
  position:absolute;
  top:25%;
  width:100%;
}

div#leftsidebar{
  /*position:absolute;
  top:25%;*/
  width:19.87%;
  height:100%;
  min-width:200px;
  float:left;
}

div#main{
  /*position:absolute;
  top:25%;
  left:20%;*/
  /*width:79.81%;
  float: left;*/
  font-size:1.2em;
  border-left-color:white;
  border-left-style:solid;
  border-left-width:3px;
  overflow:hidden;
  padding-bottom:2%;
}

How can I obtain what I want?

  • 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-16T13:05:14+00:00Added an answer on June 16, 2026 at 1:05 pm

    Give the wrapper and the main div the right height and you’ll get the result.

    div#wrapper{
        position:absolute; /*Stayed this whay cause you needed it*/
        top:25%;
        height: 75%; /**Make the wrapper contain all the needed space*/
        width:100%; 
    }
    div#main{
       height:96%; 
       /**Value actually needs be a bit less then 100 due to padding*/
       .... /**You're code here*/
    }​
    

    You can see the result in action on the following jsFiddle.
    http://jsfiddle.net/pY6nF/

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

Sidebar

Related Questions

This is a HTML email. I have two tables inside each other. One set
I have a section and the a div one right after the other, I
I have my index.php page and just afrer my header i want to include
I have this table which contains Events, and on a click on its icon
I have an issue with a table containing three cells in one row. Two
In jQuery Mobile I have several chained dialog boxes sliding in/out one after another
I want to load an image and some other actions after I click a
If I have a div that I clear the contents of, but then want
I have an Isotope #container div with many .item divs, which can be maximised
I have a webpage in which I am using 2 jsp:include directives. Basically one

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.