liam1412 Posted January 19, 2007 Share Posted January 19, 2007 I have a box that the height will vary depending on what it queries from the database. I want to place another box below but obviously the box will get covered up if the box above is too long. How do I resolve so that the 2nd box will start 10 pixels below where the 1st box ends.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/34828-positioning-with-css/ Share on other sites More sharing options...
jcombs_31 Posted January 19, 2007 Share Posted January 19, 2007 the box below will naturally flow below the top box as long as there is not absolute positioning and they are block elements. Quote Link to comment https://forums.phpfreaks.com/topic/34828-positioning-with-css/#findComment-164163 Share on other sites More sharing options...
liam1412 Posted January 19, 2007 Author Share Posted January 19, 2007 Sorry Im very new to CSS. taken me a year to be pursuaded to come away from tables and formatting ha ha. What other kinds of positioning are there and what are Block Elements do you mean <table> for example??????? Quote Link to comment https://forums.phpfreaks.com/topic/34828-positioning-with-css/#findComment-164166 Share on other sites More sharing options...
jcombs_31 Posted January 19, 2007 Share Posted January 19, 2007 [code]<div>This is the content in your first box</div><div style="margin-top: 10px">This is my second box which will be 10 pixels below the top box</div>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/34828-positioning-with-css/#findComment-164373 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.