Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey all,
    I'm having some trouble getting a float right on my website. I'm floating an image over to the right, and the text on the left wraps around the image... as long as the browser isn't too wide. I have a h2 under that paragraph that tends to creep up and go on top of that image. How could I fix this?

Page in question here: http://darcrobotics.org/?page=20


share|improve this question
I would avoid using text shadow for body text, it looks awful. – DisgruntledGoat Oct 1 '10 at 12:32

Try adding clear:right; to the CSS rules for your h2. That should do it.

share|improve this answer
Or, clear:both to handle the case where an image is floated to the left. – DisgruntledGoat Oct 1 '10 at 12:34

The site mentioned in answer has been closed down due to maintenance overhead. I'll try to transfer all important articles on some other places and will update the link ASAP

might be this can help you Fix for floating div

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.