Schneider
Schneider

Reputation: 2496

Child div height same as sibling div Bootstrap 3?

Is is possible to have child div same height as parent in bootsrtap 3?

Here is example

    <div class="row clearfix">
        <div class="col-md-6" style="background-color:red;">

 VERY LONG TEXT, JUST LONER< AND LONGER, AND LONGER, AND LONGER 
        </div>
        <div class="col-md-6" style="background-color:green;">

SHORT TXT
        </div>
    </div>

I want right col to be the same height as left column is that possible on easy way?

Upvotes: 0

Views: 3469

Answers (2)

Cristina Cristea
Cristina Cristea

Reputation: 566

here is the result: http://jsfiddle.net/kaAjW/2316/

.row {overflow: hidden;}
.col-md-6 {
    padding-bottom: 1000px;
    margin-bottom: -1000px;
    }

Upvotes: 6

Sean Keane
Sean Keane

Reputation: 411

Yes, just set a height on both the divs style="height: 100px;"

Upvotes: -1

Related Questions