How to Give DIV Columns Equal Heights
October 29th, 2008
If you’ve struggled to make two DIVs the same height for as long as I have, you will be happy to know JOATIT has found a wonderful solution.
Googling I found JOATIT’s blog post “How To Make Sure Two Divs Are The Same Height.” I used their code to align the height of the content and sidebar DIVs for this blog.
The post includes a simple javascript solution. Just insert the code inside the <HEAD> section of your pages and change the javascript variable names to be the same as your DIV ids. Comment if you need any help getting the script working.
Cool stuff, that always gets me.