I’ve a container div which has another div inside it. When I apply a margin to the inner div it appears to a margin-top to the container div (although it doesn’t give a left margin)
http://belfastswimmingteacher.com/mockup.html
What’s the craic?
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.
You can either float the
halfLeftdiv, or addpadding-topto#content.This is known as margin collapsing, and whilst may produce this unwanted behaviour, is in fact intended and correct.