Login

django image bundle exaple template

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

  1. Bootstrap Accordian by Netplay4 5 years, 10 months ago
  2. Bootstrap theme for django-endless-pagination? by se210 8 years, 10 months ago
  3. Bootstrap theme for django-endless-pagination? by se210 8 years, 10 months ago
  4. Reusable form template with generic view by roldandvg 8 years, 11 months ago
  5. Pagination Django with Boostrap by guilegarcia 9 years, 1 month ago

Comments

Please login first before commenting.