Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

How to make the same height in CSS

how could i make two collumns the same height depending on how much text its inside?

So in coulm 1 you have e.g 100 paragraphs, so the coulmn two will be filled with 100 paragraphs but with none just white so whatever the number of height of column 1 is, the coulm two will have the same height

1 Answer

A easy way is using css display table and cells, maybe this can help:

codepen.io/Capati/pen/gaexRB

You can use JavaScript too to inherit the height from another box.