When I try to add text to my absolute block inner div, it doesn't expand as expected.
I am aware that expanding within a parent container with a specified width, such as
<div class="main_wrap"></div>
, can be problematic.
Unfortunately, I cannot remove the width from the parent container. So, I am looking for a solution to correct this issue without using JavaScript. Is there a way to make it expand in width without affecting its height? Specifically, I need to address the element: <div class="abs">
. Removing the width from .main_wrap
fixes the display, but I require a solution that maintains the width due to the complex grid layout.
HTML:
<div class="block">
<div class="abs">
<table class="whf table">
<tr>
<td>
<div class="image">
<div class="shadow"></div>
<img src="http://boardingarea.com/blogs/deltapoints/files/2012/07/test.jpg" width="77" />
</div>
</td>
<td class="vamid">
<div class="text">
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
</div>
</td>
</tr>
</table>
</div>
Full example available here:
http://jsbin.com/uqafuq/6/edit
Any help would be greatly appreciated.