2

I have this kind of structure: (this is bootstrap 3 but it should be the same with version 2.x)

enter image description here

Pretty basic stuff, looking like a table. I want this col-lg-4 on the right to have the same size as the col-lg-8 on the left. I tried style="min-height: 100%" (which obviously didn't work since I'm asking here). I've been doing some research, but most of the people asking for the same issue want their whole content to be 100% of the page. I want this to be 100% of the left div in the same row. I don't even get why it's not working, the 100% should apply to the height of the outer row, which is the exact height that I need (the outer row has no padding, the image just looks like this for a better overview of the grid)

Bill the Lizard
407k213 gold badges579 silver badges892 bronze badges
asked Aug 2, 2013 at 15:10
3
  • I'm not an expert, but may be using offset? Commented Aug 2, 2013 at 15:48
  • Can you please make a FIDDLE Commented Aug 2, 2013 at 15:54
  • Check the accepted answer @ stackoverflow.com/questions/9143971/… Commented Aug 2, 2013 at 16:11

1 Answer 1

0

If you are familiar with jQuery...This has worked for me in the past. Just pass the group of colomns to this function.

function equalHeight(group) {
 tallest = 0;
 group.each(function() {
 thisHeight = $(this).height();
 if(thisHeight > tallest) {
 tallest = thisHeight;
 }
 });
 group.height(tallest);
}

use like this...

$(document).ready(function(){
 equalHeight($('.cols'));
});
answered Aug 2, 2013 at 16:10
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.