harryd Posted March 25, 2009 Report Share Posted March 25, 2009 What would be the best for the footer. I would like to add 4 banners horizontal. I found this style in the book but it can't make it work div#aaa {position : a;} div#bbb{position: b;} div#ccc {position: c;} div#ddd {position: d;} Thanks to killersites members I finished my #content with div.news with 2 cols. I would appreciate some suggestions for the footer. I am trying to add 4 horizontal banners on top and links under. Thanks HD Quote Link to comment Share on other sites More sharing options...
newseed Posted March 25, 2009 Report Share Posted March 25, 2009 You didn't say how wide the footer is going to be but let me assume that it's 900px wide and based on the code you gave it looks like the banner images are 200px wide each. You can do this with one css class and id: #banner-wrap {width: 800px; margin: 0 auto;} .banner {float: left; width:200px;} This will place all four banners horizontally and centered. Quote Link to comment Share on other sites More sharing options...
harryd Posted March 25, 2009 Author Report Share Posted March 25, 2009 The footer is 900px wide. Thanks to newseed the banners are now horizontal. I would like to center them and have same space between. Thanks Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 25, 2009 Report Share Posted March 25, 2009 Try this, and adjust based on how much spacing you need: #banner-wrap {width: 880px; margin: 0 auto;} .banner {float: left; padding: 0 10px; } Quote Link to comment Share on other sites More sharing options...
harryd Posted March 25, 2009 Author Report Share Posted March 25, 2009 Thanks Benjamin. Almost. Now I have the padding, still not centered. First banner has more room on the left than the last one. Thanks again Quote Link to comment Share on other sites More sharing options...
lm Posted March 26, 2009 Report Share Posted March 26, 2009 If you have Firefox, install developer bar . On a left side of this bar is a button: CSS - Edit CSS. Now you can change margins and paddings live in browser to center the banner div. When you ready with editing, you can save your CSS file, replacing the old version. Quote Link to comment Share on other sites More sharing options...
Andrea Posted March 26, 2009 Report Share Posted March 26, 2009 And if you also get Measure It, you can measure the spaces you have, and do some math as to what you need to change. Quote Link to comment Share on other sites More sharing options...
harryd Posted March 26, 2009 Author Report Share Posted March 26, 2009 Thanks a lot. 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.
Note: Your post will require moderator approval before it will be visible.