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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:06:12+00:00 2026-05-12T08:06:12+00:00

I need some help with my design. I want to display three equal-height boxes

  • 0

I need some help with my design. I want to display three equal-height
boxes next to each other, like this ASCI art:

+------+ +------+ +------+
|      | |      | |      |
|      | |      | |      |
|      | |      | |      |
+------+ +------+ +------+

I also have an example online (with all the CSS).

The contents of the boxes varies in height. The tricky thing is that
these boxes also need to have rounded corners. For that I am using the
“sliding doors” technique. Basically, the markup of a box is something
like this:

<div class="box">
  <div class="box-header">
    <h4>header</h4>
  </div>
  <div class="box-body">
    <p>Contents</p>
  </div>
</div>

Four block elements so I can make rounded corners and borders with
background images. The top-right corner goes on the h4. The top left
corner goes on the box-header. The bottom-right corner goes on the outer
box div and the bottom-left corner goes on the box-body.

I am using CSS display:table-cell to make all three boxes of equal
height, but here my problem starts. All the box elements are now of
equal height, but the box-body elements are not of equal height because
the contents are not of equal height. Result: The bottom-right corners
are not in the correct position. See also the link I posted.

How can I fix that? All the box divs are equal in height now. I would
like box-body to expand to use all available height, even when the
content is short. I tried height:100% but that doesn’t work. How can I
make that work?

Or is there an alternative way to achieve what I want? I cannot use
something like faux-columns because I define the width of the boxes in
ems. That means I cannot give the box div a single background image that
provides both bottom corners.

Google is being absolutely useless here. Any query involving “corners”
and “table” just gives me a gazillion links to 1990’s tutorials that use
a 3×3 table for rounded corners.

As for browser compatibility, it would be nice if IE7/8 can deal with it too but it’s not required (I can replace with unequal-height floats in that case). For the website I am developing I estimate IE market share to be 20% or less. I don’t care about IE6 at all.

Any tips are greatly appreciated!

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

    As per my comment above, I have decided to use CSS3 border-radius to solve my problem. Using the statements below it will show rounded borders on every browser except Internet Explorer. I don’t care much about IE so IE users can simply look at straight corners.

    .box {
        display: table-cell;
        width: 16em;
        padding: 1em 2em;
        background: #f6c75d url(gradient.png) repeat-x scroll top left;
        border: 3px solid #de9542;
        border-radius: 25px; /* Standard */
        -o-border-radius: 25px; /* Opera 10.x */
        -moz-border-radius: 25px; /* Mozilla/Firefox */
        -icab-border-radius: 25px; /* iCab */
        -khtml-border-radius: 25px; /* KHTML/Konqueror */
        -webkit-border-radius: 25px; /* Webkit/Safari/Chrome/etcetera */
    }
    

    In the above, gradient.png is a small tileable image that provides the gradient at the top of a box.

    It works perfectly. It also simplifies the markup and the CSS, and it reduces the amount and the size of the background images that I need.

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

Sidebar

Related Questions

I'm still learning how to design databases for my applications and need some help
Need some help to solve this. I have a gridview and inside the gridview
Need some help with this problem in implementing with XSLT, I had already implemented
Need some help gathering thoughts on this issue. Our team is moving ahead with
Need some help assigning a mouseover event to display some icons that start out
Need some help with a query.. I have three tables. Source id name 1
I'm having a hard time wrapping my head around this and need some help
I need some help! I try to design my master page by _Layout.html with
I believe that I am having a bad database design and need some help
I'd need some help to design a monadic datatype, I seem to have trouble

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.