aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-06-18 05:39:46 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-06-18 05:39:46 +0000
commitd7c7650a2c13431dd06254850150eb5edea2bc2a (patch)
tree0fe0452243a5171a54975e345109c6fd87556fb0
parentminor style addition (diff)
downloadgentoo-ads-d7c7650a2c13431dd06254850150eb5edea2bc2a.tar.gz
gentoo-ads-d7c7650a2c13431dd06254850150eb5edea2bc2a.tar.bz2
gentoo-ads-d7c7650a2c13431dd06254850150eb5edea2bc2a.zip
Tweak layout style to match old sidebar much closer. Left/right spacing is now identical on images. hr elements are slightly shorter due to iframe. Vertical spacing made more symmetrical.
-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