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 theDIV containing the images is always located to its RIGHT!!

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 theDIV containing the images is always located to its RIGHT!!

This is a password protected section, so enter with these login info:Username: test-accountPassword: test_temp

ThanX

Paul_O_B said:

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.

`

' . $image_code. '

Button

`

or

`

' . $image_code. '

Button

`

However as Ralph said we'd probably need to know more about what you have in place already.

ralphm
—
2013-01-01T21:29:44Z —
#5

There are better ways to do this, but adding clear: both to the div underneath will get you what you want:

Yes, I guess the key is to understand its nature, and how it relates to HTML, so that you can picture from the beginning the best way to set up your HTML. If you haven't already, I recommend getting a book or taking a course that builds the concepts from the ground up.

WorldNews
—
2013-01-02T06:01:06Z —
#8

What do you think is a best book on mastering CSS?FYI, I did buy a book or 2 here from SitePoint about this subject but they were not that good. ThanX.

ralph_m said:

Yes, I guess the key is to understand its nature, and how it relates to HTML, so that you can picture from the beginning the best way to set up your HTML. If you haven't already, I recommend getting a book or taking a course that builds the concepts from the ground up.