noteworthy images css

This commit is contained in:
Sanj 2012-10-24 15:16:21 +05:30
parent 88cb831e09
commit d23162866f

View File

@ -19,9 +19,13 @@ padding-bottom:10px;
border-bottom:none; border-bottom:none;
} }
.imgLinkBlock {
float:left;
}
.imgLinks { .imgLinks {
padding-right:20px; padding-right:20px;
float:left;
/*width:200px;*/ /*width:200px;*/
} }
@ -52,10 +56,17 @@ float:right;
{% for n in noteworthy %} {% for n in noteworthy %}
<div class="noteworthy"> <div class="noteworthy">
<div class="imgLinkBlock">
{% if n.image %} {% if n.image %}
{% thumbnail n.image "200" as im %} {% thumbnail n.image "200" as im %}
<img src="{{ im.url }}" width="200" alt="" class="imgLinks"> <img src="{{ im.url }}" width="200" alt="" class="imgLinks">
{% endthumbnail %} {% endthumbnail %}
{% else %}
<div class="imgNone"></div>
{% endif %}
<br /> <br />
<div class="imgLinksExtra"> <div class="imgLinksExtra">
@ -73,12 +84,7 @@ float:right;
</div> </div>
{% else %} </div> <!-- imgLinkBlock closing -->
<div class="imgNone"></div>
{% endif %}
<div class="noteContentWrapper"> <div class="noteContentWrapper">
<p class="orange"><strong>{% if n.url %} <a href="{{ n.url }}" target="_blank"> {% endif %}{{ n.title }} {% if n.url %}</a> {% endif %}</strong></p> <p class="orange"><strong>{% if n.url %} <a href="{{ n.url }}" target="_blank"> {% endif %}{{ n.title }} {% if n.url %}</a> {% endif %}</strong></p>
<br> <br>