To add space to the ads or align them to fit your website layout, you would use CSS to customize their styling. See section "CSS Styling" below for more information.
This approach is suitable if you want a grid, a column, or a row of ads. On the other hand, if you have ads on different areas of a page and they are not together in one area, you should use the single ad call approach instead.
AdServer
. Additionally, text-link ads can have a different styling from display ads. Text ads use two CSS classes: AdServer
and AdServerText
.
For example:
<div class="AdServer">Ad One</div> <div class="AdServer">Ad Two</div> <div class="AdServer">Ad Three</div> <div class="AdServer AdServerText">Text Ad #1</div> <div class="AdServer AdServerText">Text Ad #2</div> <div class="AdServer AdServerText">Text Ad #3</div>
By default, the ads will be displayed vertically, top to bottom. You can change the CSS styling for the DIV class to display horizontally, multiple ads side by side, with float:left
. For example:
<style type="text/css">.AdServer {padding:3px;float:left;}</style> <script type="text/javascript" src="https://g.adspeed.net/ad..."></script>
<head> ... <style type="text/css"> .AdServerWrapper {width:130px;} .AdServer {padding:3px;float:left;} </style> ... </head> ... <div class="AdServerWrapper"> <script type="text/javascript" src="https://g.adspeed.net/ad..."></script> </div>
<head> ... <style type="text/css"> .AdServerWrapper {width:270px;} .AdServer {padding:3px;float:left;} </style> ... </head> ... <div class="AdServerWrapper"> <script type="text/javascript" src="https://g.adspeed.net/ad..."></script> </div>