aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoo_ads/ads/templates/ads.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/gentoo_ads/ads/templates/ads.html b/gentoo_ads/ads/templates/ads.html
index efe8ed5..b5b550d 100644
--- a/gentoo_ads/ads/templates/ads.html
+++ b/gentoo_ads/ads/templates/ads.html
@@ -6,16 +6,20 @@
<style type="text/css">
div.ads {
text-align: center;
- width: 130px;
+ width: 125px;
+ }
+ div.ads, body {
+ margin: 0;
+ padding: 0;
}
div.ads a img {
max-width: 125px;
max-height: 125px;
border: 0 none;
- margin: 0.5em auto
+ margin: 0.25em 0em;
}
div.ads hr {
- width: 90%;
+ width: 100%;
border: 0 none;
background-color: #000;
height: 1px;
@@ -27,9 +31,10 @@
<body>
<div class="ads">
{% for ad in ads %}
- <a href="{{ad.url}}"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a>
<hr />
+ <a href="{{ad.url}}"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a>
{% endfor %}
+ <hr />
</div>
</body>
</html> \ No newline at end of file