Skip to content

Commit

Permalink
Stretch images to fit on the grid
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Nov 26, 2016
1 parent 749598a commit c5990a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion memegen/static/stylesheets/stylesheet.css
Expand Up @@ -144,7 +144,10 @@ span.meme-text {
}

.meme-example {
margin: 20px;
width: auto;
max-width:100%;
height: 240px;
padding: 20px;
}


Expand Down
2 changes: 1 addition & 1 deletion memegen/templates/index.html
Expand Up @@ -57,7 +57,7 @@
{% for img in sample_images %}
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<a href="{{img.url}}">
<img class="meme-example" width="240" src="{{ img.url }}" />
<img class="meme-example" src="{{ img.url }}" />
</a>
</div>
{% endfor %}
Expand Down

0 comments on commit c5990a0

Please sign in to comment.