Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Make div 100% height of TD (IE issue)

$
0
0

Given the following html sample, how can I make the absolute positioned div height 100% of the table cell. This is only an issue for IE.

The catch is that div must not affect the cell contents, hence the position absolute, and the row style must define the height.

<html><table><trstyle="height:100px;"><tdstyle="position:relative;width:200px;background-color:green;border:solid 2px green;"><divstyle="position:absolute;background-color:red;width:100%;height:100%;top:0px;left:0px;"></div>
    xyz</td></tr></table></html>


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>