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
Graham Davidson
Courses Plus Student 14,966 PointsSame Height Columns
I have been reading that flexbox does not have bucket loads of browser support at the minute. I am creating a responsive site that has three cols all which need to have the same height.
Is
#css-table {
display: table;
}
#css-table .col {
display: table-cell;
width: 25%;
padding: 10px;
}
#css-table .col:nth-child(even) {
background: #ccc;
}
#css-table .col:nth-child(odd) {
background: #eee;
}
all cool and groovy or is there a best practice that I should investigate?
G
2 Answers
Graham Davidson
Courses Plus Student 14,966 PointsOk so where is this going wrong?
http://plusonetesting.co.uk/wdcr/
Using the above - I would have thought the cols would be the same height.
G
Bryan Farris
1,869 PointsI can see your issue and can let you know that I had some trouble with this myself on another project. This article really helped me out. Take a look and see if any of those solutions work for you.
Cheers,
Bryan