http://jsfiddle.net/ZAvDd/
As my table row grows in height, I\'d like my div inside to automatically match it as well.
For the code above, my div
div
What is the purpose of your div?
Your div has currently a height of 0 (zero) because it's empty. What you can do is apply the style directly to your parent td by adding a class to it:
And style it accordingly: .bar { background: gray;} It really depends on the purpose of your div. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
And style it accordingly:
.bar { background: gray;}
It really depends on the purpose of your div.