Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

twitter-bootstrap row-fluid doesn't adjust height according to it's child size

I have the following fiddle. It's essentially a

<div class="row-fluid">
  <div class="sidebar">
  </div>
</div>

I am just wondering why the row-fluid doesn't adjust the height based on the sidebar height? I can see the sidebar has a height of 1450px, so if all container div's by default adjust's to it's child div's size then it should also have a height of 1450px. If I check the height of the row-fluid, it stays at 0. How do I make this adjust accordingly?

like image 456
adit Avatar asked Dec 07 '22 03:12

adit


1 Answers

Add class .clearfix to the row-fluid and it will work :)

like image 154
edonbajrami Avatar answered Apr 06 '23 00:04

edonbajrami