cssqq Posted January 13, 2011 Share Posted January 13, 2011 I got a setup like this... +++++++++++++++++++ + FLOAT + <--- Div with float +++++++++++++++++++ ++++++++++++++++++++ + FLOAT DIV FLOAT DIV + <--- Div with 2 floats ++++++++++++++++++++ The div with 2 floats has a negative top margin of -24px... the div follows the top margin... the floats inside the div drop below the float at the top. Why? please help!!! Quote Link to comment Share on other sites More sharing options...
raknjak Posted January 13, 2011 Share Posted January 13, 2011 It would be so much easier to see your markup. Quote Link to comment Share on other sites More sharing options...
fortnox007 Posted January 13, 2011 Share Posted January 13, 2011 I got a setup like this... +++++++++++++++++++ + FLOAT + <--- Div with float +++++++++++++++++++ ++++++++++++++++++++ + FLOAT DIV FLOAT DIV + <--- Div with 2 floats ++++++++++++++++++++ The div with 2 floats has a negative top margin of -24px... the div follows the top margin... the floats inside the div drop below the float at the top. Why? please help!!! I like to see your code to, but since i like puzzles. Maybe because they are all following the normal flow of the document. Maybe try to give your bottom div a position absolute and make the z-index higher than the top one. Make sure thought the top div is positioned relative or anything other than static otherwise your bottom div will get sucked to the top of the screen. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.