DIVS stuck together

Hi I’ve created 3 divs. 2 divs are together and are inside and the 3rd one is outside the . But is seems as though the 3rd is stuck behind the other 2. If I place margin-top on it, it move every div down. Why isn’t the div below the other 2. I don’t understand why it is behind the div and not below like I placed in the html.

Can you show us some code? The html and css.
Edit: There it is.

Yeah I forgot to do so then realised. :slight_smile:

It’s because the 2 divs inside are floated, they are not in ‘normal’ flow, so don’t give any height to their container. You will need a “Clearfix” on the container with the floats.
Try adding:-

#logo {
  overflow: auto;
}
1 Like

Thanks alot

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.