Hi Andrea,
If you want it to be just above or just below the other banner then you can simply duplicate the code and give the DIV a different ID and change the module to another one of the default modules available.
e.g. (original code followed by another module position that would be published just below the first.)
| Code: |
<?php if (mosCountModules('advert1')) { ?>
<div id="ad" >
<?php mosLoadModules ( 'advert1',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('advert2')) { ?>
<div id="ad-2" >
<?php mosLoadModules ( 'advert2',-2 ); ?>
</div>
<?php } ?>
|
You only need the DIV ID so you can target it in the CSS stylesheet <div id="ad-2"> and you can obviously give it any ID name you want.
In the stylesheet you'll add:
and then you can put your styles between the curly brackets.
e.g.
| Code: |
#ad-2 {
padding-top: 10px;
}
|
would give you 10 pixels of spacing between the two blocks.
Hope this helps.