Anybody knows a simple way of creating equal height columns? Regardless of content? So for example right column has a lot of text, and the left column only a small portion of text. However I want to show both columns with different background colours at the same height. Example: http://css-tricks.com/examples/FluidEqualHeightFauxColumns/
By the way, a simple fix for 2 columns would to give 1 column a background colour and also the container a background colour. But I want to achieve something like this with 3 or 4 columns, each with their own bg colour/image. Columns should follow height of largest column.
Hey Rowan, I wish there was an easy way to do this. You can write up some javascript to dynamically calculate the height of the row and make the columnās class have that same height (subtract padding or whatnot), or you can just set an pixel height to make them all the same height.
One solution uses javascript, one uses CSS3. Neither is āidealā, but both will work. As far as making it responsive - as long as the content doesnāt change you can remove the height for smaller devices and it will stack normally.
Specifically the three column layout i have where each column has a different height, and i need it setup so each column has the same start height, the length is not important and that is determined by the content within each column.
I updated the link brown-bag link. Noticed that I broke the design a bit, its my playground. So what I did is this.
A row with two columns. A class to the row and in custom code add this
Thats it!
Problems with the responsivness though. Working on that.
Update: you should add flex code for other browsers.
Update 2: I had to add custom @media code to make the columns stack on smaller screens. Maybe there is some special flex code for that, donāt know.