severndigital Posted October 12, 2008 Share Posted October 12, 2008 ok .. here is what i have 5 divs <div id="logo"> Logo </div> <div id="man1"> Man 1 </div> <div id="man2"> Man 2 </div> <div id="man3"> Man 3 </div> <div id="man4"> Man 4 </div> <div id="man5"> Man 5 </div> my css so far is as follows #logo{ border: purple 1px solid; } #man1 { border: cyan 1px solid; width: 25%; height: 400px; float: left; } #man2 { border: orange 1px solid; width: 16%; height: 400px; float: left; margin-top: 100px; } #man3 { border: green 1px solid; width: 17%; height: 400px; float: left; margin-top: 175px; } #man4 { border: blue 1px solid; width: 16%; height: 400px; float: left; margin-top: 100px; } #man5 { border: pink 1px solid; width: 25%; height: 400px; float: left; } the css so far puts the logo div above everything what i want to do is put the logo div in the gap created by man1 and . Not above everything, but actually between the two divs so that man1, logo, man5 line up at the top with man 2, man 3, man 4 below logo anyone have a solution thanks, C Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted October 12, 2008 Share Posted October 12, 2008 Your html markup is incorrect. You also need to clear floats if you want to start a new line. Quote Link to comment Share on other sites More sharing options...
severndigital Posted October 13, 2008 Author Share Posted October 13, 2008 That doesn't help me at all. How is my markup wrong?? I did get it working and it had nothing to do with clearing floats Quote Link to comment Share on other sites More sharing options...
dropfaith Posted October 13, 2008 Share Posted October 13, 2008 uhm the style sheet you use shows everything floating left? you want from what i see a basic three column layout http://css.maxdesign.com.au/floatutorial/tutorial0901.htm read up on liguid 3 column layouts using floats and all your answers are solved Quote Link to comment Share on other sites More sharing options...
kevin777 Posted October 17, 2008 Share Posted October 17, 2008 Seems like a strange design, perhaps think up another way to achieve this layout? Otherwise use floats,clear but i doubt it would be very stable with content in it. 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.