html - Absolute Positioning inside a table cell in IE -
i'm having issues absolute positioning inside table cell in internet explorer (9 specifically, i'm sure issue exists in <9 well). i'm trying force div inside table cell take whole cell. pretty easy in chrome/ff/safari using:
div { position: absolute; top:0; bottom:0; right:0; left:0; } td { position: relative; } but reason, ie behaves differently. can't give div dynamic height based on table cell @ all. here's example show i'm talking about. works how need in chrome/ff/safari, it's broken in ie. there way work same way in ie? thanks!
i recommend instead of positioning element directions, use 2 of them , instead, use size div.
like:
div { position: absolute; top:0; bottom:0; width: 100%; height: 100% } td { position: relative; width: 400px; height: 400px; }
Comments
Post a Comment