- Author:
- amitu
- Posted:
- June 11, 2007
- Language:
- HTML/template
- Version:
- Not specified
- Score:
- 1 (after 1 ratings)
This is an example template to show the usage of django image bundle.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | {% load imgbundle %}
{% imgbundle %}
<html><head><title>django image bundle demo</title>
<style type="text/css">
div#wrong img
{
padding: 10px 10px;
border: 1px solid red;
}
#right
{
padding: 10px 10px;
border: 1px solid red;
float: left;
}
</style>
</head><body>
<p>This is the first image:</p>
{% img src="/static3/winOpen.gif" %}
<p>This is image 2:</p>
{% img src="/static2/dolltoo.JPG" %}
<p>This is image 3:</p>
{% img src="/static2/google.gif" %}
<p>4</p>
{% img src="/static2/P1020730.JPG" height="400px" %}
<p>this one got padding</p>
<div id="wrong">
{% img src="/static2/P1020730.JPG" width="300px" %}
</div>
<p>this one got padding right</p>
<div id="right">
{% img src="/static2/P1020730.JPG" width="300px" %}
</div>
<p style="clear: both">blah blah</p>
</body></html>
{% endimgbundle %}
|
More like this
- Bootstrap Accordian by Netplay4 5 years, 11 months ago
- Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
- Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
- Reusable form template with generic view by roldandvg 9 years ago
- Pagination Django with Boostrap by guilegarcia 9 years, 2 months ago
Comments
Please login first before commenting.