Blade Maker Posted March 25, 2011 Share Posted March 25, 2011 First I do not know where to post this so forgive me if its not in the correct place. Okay well this is a noob question but hey we all have problems. Mine is: I have 3 divs, left, center, right, now the left and right would be my links and stats when the center is the content (what else is new) I would like to know, how can I make it so the left and right divs would stretch according to the content? Also say I wanted the content div to be set a certain height unless the text goes beyond that height, is any of this possible. Sorry if this did not make sense but its in the middle of the night and I need to sleep, so good night and looking forward to reading the answers in the morning. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 25, 2011 Share Posted March 25, 2011 http://www.smashingmagazine.com/2010/11/08/equal-height-columns-using-borders-and-negative-margins-with-css/ Quote Link to comment Share on other sites More sharing options...
Blade Maker Posted March 25, 2011 Author Share Posted March 25, 2011 Does not quite help. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 25, 2011 Share Posted March 25, 2011 Then what are you after? It teaches you how to create equal column height, ie one section stretches with content so do the rest, which is what you want judging from the first post The height query, min-height: 500px; sort of thing. Quote Link to comment Share on other sites More sharing options...
Blade Maker Posted March 25, 2011 Author Share Posted March 25, 2011 Oh ok thanks. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted March 26, 2011 Share Posted March 26, 2011 Honestly I would go for a table design in such cases. People saying tables should really check out what they are saying. DIV cannot do all what tables can + it is not given it's easier to read or to code nor it produce smaller HTML. The only real advantage of a table less design is that you could change your CSS to change the placement of the things without changing your HTML, however this is voided as most of the time when you really want to change the look of your site you will have to change the HTML. 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.