brown2005 Posted November 2, 2007 Share Posted November 2, 2007 Hi, I use to do all my layouts in tables so im now learning div layouts.. is this correct or is there better way? echo" <div id='partners'> <div class='sponsor'> <div class='sponsor-title'></div> <div class='sponsor-content'></div> </div> <div class='partners'> <div class='partners-title'></div> <div class='partners-content'></div> </div> </div>"; Link to comment https://forums.phpfreaks.com/topic/75768-css-layout/ Share on other sites More sharing options...
brown2005 Posted November 2, 2007 Author Share Posted November 2, 2007 sorry what this does is creates two boxes.... 1 a sponsor box and 1 a partner box, the sponsor box is 150px wide and 75px high and the partners box is 600px wide and 75px high... and in each box it has a title which is at the top of the box with a 25px height and a border for the bottom. Link to comment https://forums.phpfreaks.com/topic/75768-css-layout/#findComment-383432 Share on other sites More sharing options...
moberemk Posted November 2, 2007 Share Posted November 2, 2007 Well have to see the CSS code first though. The markup looks good though. Link to comment https://forums.phpfreaks.com/topic/75768-css-layout/#findComment-383435 Share on other sites More sharing options...
ToonMariner Posted November 2, 2007 Share Posted November 2, 2007 div class='sponsor-title'></div> should surely be <h1> ???? <div class='sponsor-content'></div> should just be a series of paragraphs and other markup to display content? use the correct markup for the correct info. DON'T GET DIVITIS... Link to comment https://forums.phpfreaks.com/topic/75768-css-layout/#findComment-383461 Share on other sites More sharing options...
brown2005 Posted November 2, 2007 Author Share Posted November 2, 2007 lol.. thanks mate, thats wat i was trying to find out... sounds like a bad disease, 'divitis' one thing with the content part though on the partner bit i will want to have say 10 different images... what would be the best way to do that. Link to comment https://forums.phpfreaks.com/topic/75768-css-layout/#findComment-383527 Share on other sites More sharing options...
ToonMariner Posted November 3, 2007 Share Posted November 3, 2007 jsut put the <img> tags in and float them left give them margin-right and margin-bottom in your css and the'll flow beautifully... Link to comment https://forums.phpfreaks.com/topic/75768-css-layout/#findComment-384236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.