So here's the problem:
- Without the inner divs having a width and height set, the overflow:hidden doesn't clip; the text causes the div to stretch.
- If I assign the inner divs a width and height of 100% then it doesn't stretch, but vertical-align doesn't work anymore.
- If i assign the inner divs a width and height equal to the outer div, it not only is not vertically aligned, it makes the div bigger than it should be.
[html]<!-- With inner div width set -->
<div id="outerDiv" style="font-style:normal;left:0px;text-align:Left;width:200px;font-weight:normal;height:200px;position:Relative;top:0 px;display:table;color:#000000;font-family:Arial;border:#000000 Solid 1px;background-color:#ffffff;overflow:hidden;font-size:12pt;">
<div id="ltoPreview_nest1" style="display:table-cell;vertical-align:Top;overflow:hidden;width:100%;height:100%;" ></div>[/html]<div id="ltoPreview_nest2" style="overflow:hidden;width:100%;height:100%;text-decoration:none;">Text Goes Here</div></div>
[html]
<!-- Without inner div width set -->
<div id="outerDiv" style="font-style:normal;left:0px;text-align:Left;width:200px;font-weight:normal;height:200px;position:Relative;top:0 px;display:table;color:#000000;font-family:Arial;border:#000000 Solid 1px;background-color:#ffffff;overflow:hidden;font-size:12pt;">
<div id="ltoPreview_nest1" style="display:table-cell;vertical-align:Top;overflow:hidden;"></div>[/html]<div id="ltoPreview_nest2" style="overflow:hidden;text-decoration:none;">Text Goes Here</div></div>