I am drastically trying to find way to make a div 100% height of it’s parent. Only trick is that the parents height is going to be dynamic.
Any ideas on this? I cannot find a solution anywhere?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s because there isn’t a clean solution…they’re all hacks. see abcoder
You can use javascript/jquery,
js fiddle — uses
box-sizingso that I could put some padding on the columns, but isn’t strictly necessary.Or you can wrap all your divs in another div, and then use a vertically-tiled background on the containing div to give the appearance that they’re separate columns, even though the inner divs don’t extend all the way down.
Tables or emulated tables (using CSS) will also work.
I think there may be some solutions involving CSS3 these days, however. This answer is from 2011, so use your judgement.