Log in

View Full Version : Sidebar - Spaces between sponsor Banners


guncanada
02-25-2009, 02:22 AM
I have a couple smal banners in my sidebar. i just stacked the html in the advertisment section. Now the banners are almost touching. how do i let them breath a little with a space or 2. thanks.

blind-eddie
02-25-2009, 02:28 AM
<br><br>

guncanada
02-25-2009, 02:29 AM
ok. well you figured it out....im new....thanks...

1Unreal
02-25-2009, 04:13 AM
<br> is a slightly rudimentary way of doing it. You are best using css.


.ads {
padding: 5px
}


That will leave a 5px space round anything with the class of element. So if you put your advertisement in a <div> with the class of ads it will have the space round it.

<div class="ads">Advertisement Code</div>

Dismounted
02-25-2009, 07:33 AM
And you need to have a div element for each ad, otherwise, they will end up like they are now. (You probably only want padding-top and padding-bottom, not all four sides.)