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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:24:55+00:00 2026-05-23T00:24:55+00:00

I have a design that uses two outer columns, and within one of the

  • 0

I have a design that uses two outer columns, and within one of the outer columns in a heading section and two more columns below, like so:

**************************
*          header        *
**************************
|                |       |
|                |       |
|      out1      | out2  |
|                |       |
|                |       |
|                |       |
**************************
*          footer        *
**************************


**************************
*          header        *
**************************
|     title      |       |
|________________|       |
|          |     |       |
|          |     |       |
|    in1   | in2 |       |
|          |     |       |
|          |     |       |
|          |     |       |
**************************
*          footer        *
**************************

Now, some of the columns have borders, so out2 has a left hand side border and in1 has a right hand side border. The entire page has a faint large background tiling image.

I’m trying to make the columns the same height using jquery so the column borders look equal.

The way I’ve gone about it is to make the outer columns the same height, then try to make the inner columns both the same height, and as well, try to make them stretch all the way to the bottom of their in1 container (in the case where out2 is taller than out1)

Where it gets tricky is the title section inside out1 needs to be accounted for in the calculations.

out1 & out2 are contained inside a div with a layout class for easy selector query and in1, in2 & title are wrapped inside a div with the classes layout and nested (for easy selector and differentiation between nested and outer).

each layout container also has a div.clear to cancel out the effect of floating the columns on the height.

This is the code I run on the ready handler:

var layouts = $('.layout').get();

// sort to have .nested last
layouts.sort(function(a,b){
    return $(a).hasClass('nested');
});

$(layouts).each(function(){

        var $this = $(this);

        var container_height = $this.height();


        if ($this.hasClass('nested'))
        {
            var parent = $this.parent();
            var heading = $this.siblings('h1');
            var parent_h = parent.innerHeight();

            container_height = parent_h-heading.innerHeight() - 9; // (i'm not sure why I need -9 here, just go with it, it's not critical to the problem)
        }



        var columns = $this.find('> div').not('.clear');

        columns.each(function(){
            var padding = $(this).innerHeight() - $(this).height();
            $(this).height(container_height - padding);
        });

    });

It mainly works. On safari (mac * ipad), I find it helps to set a delay before running that code (even though it’s triggered within a ready event) but there are random inconsistencies where the column height is miscalculated too small, and causes the layout to flow over the footer.

I thought about using Faux Columns but the combination of borders and a background image on the document make it impossible because of the inner title section (the faux columns background should not display within that area, but I should still see through to the page background)

Do you have any clever idea that would make this simpler or could you provide some insight into why the occasional miscalculation happens?

Thanks

  • 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-23T00:24:56+00:00Added an answer on May 23, 2026 at 12:24 am

    One appraoch may be to have the three columns wrapped in a containing element and disregard the outer columns. Your title would just sit above the three columns which you could specify a width to match the first two columns of the three.

    Then you could apply a negative margin to the thrid column, making it line up with the page title. This will allow you to use a background image for the borders and not have to line things up with jquery.

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

Sidebar

Related Questions

Suppose I have a design like this: Object GUI has two objects: object aManager
I have a design issue that I would appreciate some input on. I would
Please forgive my long question. I have an idea for a design that I
I have started design of a ColdFusion application that is entirely web based. Not
I've always felt that my graphic design skills have lacked, but I do have
The majority of resources that I have for UI design all deal with the
I have a (C#) genetic program that uses financial time-series data and it's currently
I have an algorithm that uses the following OpenSSL calls: HMAC_update() / HMAC_final() //
I'm working on a new layout for my site that uses a header, footer
I have a C# application that uses the SerialPort object to establish a connection

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.