
Originally Posted by
WorldNews
Hello,
And I want to place under these images another DIV, where the buttons are loacted.
However, whatever I do the DIV that is to contain the buttons rather being located beneath the
DIV containing the images is always located to its RIGHT!!
What does one need to include in the DIVs coming after:
'<div class="image-float-left" style = "float: left;">' . $image_code. '</div>'
to force this 2nd DIV to get located beneath it and not to its right?
ThanX.
As the images are floated then obviously any following content will sit to the side of the image unless you set it to clear or don't float the image at all.
If you want pairs of elements floated then wrap them both in a parent div and float the parent instead.
Code:
<div class="image-float-left" style="float: left;">
' . $image_code. '
<div class="button">Button</div>
</div>
or
Code:
<div style="float: left;">
<div>' . $image_code. '</div>
<div class="button">Button</div>
</div>
However as Ralph said we'd probably need to know more about what you have in place already.
Bookmarks