diff options
author | 2009-12-30 11:33:13 -0600 | |
---|---|---|
committer | 2009-12-30 11:33:13 -0600 | |
commit | 583d1bc458014aca282cce1493c56e8e76e9ee30 (patch) | |
tree | 062a6922f13cc7137c3e95cdac8104f82b29f053 | |
parent | Created impressions logging using python logging module, thanks to Darren Wyn... (diff) | |
download | gentoo-ads-583d1bc458014aca282cce1493c56e8e76e9ee30.tar.gz gentoo-ads-583d1bc458014aca282cce1493c56e8e76e9ee30.tar.bz2 gentoo-ads-583d1bc458014aca282cce1493c56e8e76e9ee30.zip |
added in css to restrict the max size of the ad img
-rw-r--r-- | gentoo_ads/ads/templates/ads.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gentoo_ads/ads/templates/ads.html b/gentoo_ads/ads/templates/ads.html index 55a80d2..1626a0c 100644 --- a/gentoo_ads/ads/templates/ads.html +++ b/gentoo_ads/ads/templates/ads.html @@ -2,13 +2,18 @@ <head> <title></title> <meta content=""> - <style></style> + <style> + div.ads a img { + max-width: 125px; + max-height: 125px; + } + </style> </head> <body> + <div class="ads"> {% for ad in ads %} <a href="{{ad.url}}"><img src="{{ MEDIA_URL }}{{ ad.name }}.png" alt="{{ ad.title }}" title="{{ ad.title }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a><br /> {% endfor %} - - + </div> </body> </html>
\ No newline at end of file |