id Posted August 10, 2012 Share Posted August 10, 2012 Hello, Im making a forum board and in my view_topics.php page, the layout is the basic.... In one big DIV is : title, published date, then its a float left (user content), then a float right (actual content). While I want the user content height to match with the actual content height. Example: The user content have a background, and i want it to match the actual content. So if the actual content height is 600px; then i want the user's content height to be 600px;. I assume that a min-height would work, if i gave both user content and actual content the same height index, but it doesn't and im stuck. Quote Link to comment https://forums.phpfreaks.com/topic/266926-div-wont-match-up-with-the-other-div-float/ Share on other sites More sharing options...
Christian F. Posted August 10, 2012 Share Posted August 10, 2012 I think you'll find this article quite interesting: http://www.alistapart.com/articles/fauxcolumns/ Quote Link to comment https://forums.phpfreaks.com/topic/266926-div-wont-match-up-with-the-other-div-float/#findComment-1368495 Share on other sites More sharing options...
BuildMyWeb Posted August 18, 2012 Share Posted August 18, 2012 its nigh impossible helping you here with no code Quote Link to comment https://forums.phpfreaks.com/topic/266926-div-wont-match-up-with-the-other-div-float/#findComment-1370545 Share on other sites More sharing options...
yamikowebs Posted August 20, 2012 Share Posted August 20, 2012 Since you do not know the exact height you can not do this without a trick like Faux Columns, or tables. You can also play with display properties like display="table-column" Or you can use Javascript with jQuery. $("#div1").height($("#div2").height());//set the height of #div1 to the height of #div2 If needed I can give out a better example code later. Quote Link to comment https://forums.phpfreaks.com/topic/266926-div-wont-match-up-with-the-other-div-float/#findComment-1370869 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.