[resolved] Div float pushes down 350px (3 posts)

  1. gobucks821
    Posted 6 years ago #

    I'm developing a blog and for some reason the div-id "main" is filling with 350px of blank space before its child elements appear: "this-issue" (float left) and "sidebar" (float right). As a temporary workaround, I made its children float top: -350px, but I'd like to figure our what's causing that blank space. Additionally, that workaround shifts the content up, but now the blank space appears below the children.


  2. Izvarinskij
    Posted 6 years ago #

    <span class="m"></span> causing problem. You dont even really need it, you can add it to <div id="main"> as a background + background-position.

    Or you should’ve use position:absolute instead of relative.

  3. gobucks821
    Posted 6 years ago #

    Thanks! 'Background' + 'background-position' worked perfectly.

Topic Closed

This topic has been closed to new replies.

About this Topic