Hi,

I have a DIV element inside a TD element, and I try to get the DIV's height
equal to the TD height.

Below is the test code, I would like that the red square has the same height
as blue square.
Tried to add height:100% and min-height:100% to the DIV element, but that
has no effect here.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>
<html><head><title>test</title><meta http-equiv="Content-Type"
content="text/html; charset=utf-8">
</head><body>
<table style="table-layout:fixed;width:100%;"><tbody>
<tr><td style="color:#FFF;background-color:#00F;">hello<br>world<br>!</td>
<td><div style="background-color:#F00;">&nbsp;</div></td>
</tr></tbody></table></body></html>

Thank you for any help!
-- 
View this message in context: 
http://css.2040035.n2.nabble.com/div-element-inside-td-can-t-get-height-to-100-tp5572391p5572391.html
Sent from the css-discuss mailing list archive at Nabble.com.
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to