My markup is below. The background
property of the #template
element is set to rgba
, with some transparency. In IE9 the transparency does not seem to work. If I remove the display: table-cell
from #template
style then transparency works but the cell is not 100% high anymore. This is only in IE. It works in Chrome. Did not try with FF.
I am looking for help figuring out why this is happening and how to fix it.
I know that if I remove the display: table-...
styles, it works, but I need these styles for my layout. Except for the display: table-cell
for #template
, which I did not have originally, but discovered that without it, IE9 does not make it 100% high. I need it to be 100% high.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body {
height: 100%;
}
#container {
display: table;
height: 100%;
width: 100%;
}
#container #content {
background-color: #ff6622;
display: table-row;
height: 100%;
}
#template {
background: rgba(255, 255, 255, 0.3);
display: table-cell;
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="container">
<div id="content">
<div id="template">text</div>
</div>
</div>
</body>
</html>