I have a div id css called frontwidth which holds 1 img 1 title and 1 text.
When I do a second or third frontwidth its laying behind themselves instead of going underneath and underneath.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As per my comment:
Remove the
positionrule from each of these elements:#mainbody.#frontwidth.#titlesbig.#greyline.#homepageimage.#titlesmedium.#homepagetext.With the exception of
mainbody, you’re using each of those elements multiple times.So, change to using a
classinstead.For example, in your HTML, change to:
And in your CSS, change to:
Now we can get to laying out those elements as you want them:
.homepageimage, addfloat: left..frontwidth, addoverflow: hidden(to clear the floats)..titlesmediumand.homepagetextaddmargin-left: 340px.