Hi Folks,
I am trying to implement a liquid layout, in which there is text inside a nested DIV.
The parent DIV changes width according to the browser size.
I want my text inside the child DIV to wraparound, when it “hits” the edge of the parent DIV… when resizing.
However for some reason, my Child DIV is not limited to the size of it’s parent and it overflows past the parent DIV… Therefore it does not wraparound when the parent DIV is resized… Eventually it wraps around when the Child DIV hits the edge of the browser.
How can I limit the width of my child div to the width of the parent DIV…
(The reson I am using a nested DIV is because I need my text to be offset from the top by 80px and left 200px, because of a graphic)
This is the markup for the nested Divs
<div style="height: 150px; width: 80%;">
<div style="position: relative;text-align: left; top: 80px; left: 200px;">
Text that needs to wraparond when the parent DIV get narrower!
</div>
</div>
Thanks for any help,
- Joel
I am trying to implement a liquid layout, in which there is text inside a nested DIV.
The parent DIV changes width according to the browser size.
I want my text inside the child DIV to wraparound, when it “hits” the edge of the parent DIV… when resizing.
However for some reason, my Child DIV is not limited to the size of it’s parent and it overflows past the parent DIV… Therefore it does not wraparound when the parent DIV is resized… Eventually it wraps around when the Child DIV hits the edge of the browser.
How can I limit the width of my child div to the width of the parent DIV…
(The reson I am using a nested DIV is because I need my text to be offset from the top by 80px and left 200px, because of a graphic)
This is the markup for the nested Divs
<div style="height: 150px; width: 80%;">
<div style="position: relative;text-align: left; top: 80px; left: 200px;">
Text that needs to wraparond when the parent DIV get narrower!
</div>
</div>
Thanks for any help,
- Joel