Look at this JSBin example. If I float an element, it will move the text surrounding it (like it should) but it will still appear over an element’s background, which I don’t want. How can I fix this?
Share
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 should add
overflow:hiddento the element whose background is extending behind the float. In your case this would be your#hellodiv.http://jsbin.com/izedip/3/edit#preview