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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:30:46+00:00 2026-05-28T08:30:46+00:00

I want to put 3 div like columns. The one on the left and

  • 0

I want to put 3 div like columns. The one on the left and the one the right have a content and variable length. The one in the middle is a divider.
My CSS is:

html
{
    background:url(../img/texture.png) 50% 0 repeat #fff;
}

body
{
    font:13px/20px "Trebuchet MS", Helvetica, sans-serif;
    position:relative;
    min-width:960px;
}

html, body 
{
    height:100%;
}

    .main
    {
        background-color:#f8f8f8;
        padding:2px;
        border:1.5px solid #000000;
        border-radius:1em;
        -webkit-border-radius:1em;
        -moz-border-radius:1em;
        -o-border-radius:1em;
        margin:auto;
        width:950px;
        box-shadow:0 0 20px #585858;
        word-wrap:break-word;
    }

    section#content
    {
        padding:10px 0px;
        overflow:hidden;
    }

    section#content #text
    {
        margin:10px 20px 0px;
        text-align:center;
    }

        #text #login
        {
            width:40%;
            margin-left:5%;

        margin-right:5%;
        float:left;
        text-align:left;
    }

    #text #registration
    {
        width:40%;
        margin-left:5%;
        margin-right:5%;
        float:right;
        text-align:left;
    }

    #text #divider_ver
    {
        float:left;
        height:100%;
        width:1px;
        background:#000000;
    }

And my JSP:

<body>
<div class="main">
    <section id="content">
        <div id="testo">
            <div id="text">
                <div id="login">
                    ...
                </div>
                <div id="divider_ver"></div>
                <div id="registration">
                    ...
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </section>
</div>
</body>

The problem is that the divider won’t show up. If I set its height like: min-height:100px; it will, but will have fixed height (100px). I want it to have the height of the taller between the other 2 div, but I can’t do it.

  • 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-28T08:30:46+00:00Added an answer on May 28, 2026 at 8:30 am

    http://jsfiddle.net/2mjet/1/

    Here:

    CSS changes

    section#content #text
    {
        margin:10px 20px 0px;
        text-align:center;
        overflow: hidden;
    }
    
    #text #divider_ver
    {
        float:left;
        padding-bottom: 10000px;
        margin-bottom: -10000px;
        width:1px;
        background:#000000;
    }
    

    Simple +padding -margin with overflow:hidden container, but it’s nice trick to remember.

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

Sidebar

Related Questions

I'd like to put two columns on the side of the content div. The
I have a div which contain lots of input[type=text] fields. I want to put
I have big content. get by file_get_content. It like this: <div class=nwsdetail> <div class=othernws>
I have the following dynamic code. I want to put the position values left
I have a .html file containing text content like: <div> The study concludes that
Let's say I have <div class=myDiv>Hi there</div> I want to put a background-image and
I have one more question(first one is here: html, css with center div problem
i have an ajax actionlink like this: <div style=float:left> @Ajax.ActionLink(EMPLOYEE, _PartialEmployeeIndex, Employee, new AjaxOptions()
hey, hi i want put limit on object creation means a class can have
I want to put two side by side on another (I have three )

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.