I'm really new to HTML and CSS, so this is probably a really basic question:
Let’s say I have a page where I'm displaying books (with all the information associated with a book- like an image, name, isbn). Sometimes I'll have 1 book, other times I'll have 3 or 6 and so forth.
I know how to display one book using CSS and HTML, but how do I display and position multiple books? I want the first book to appear at the top of the page and subsequent books to appear below it - how do I achieve this?
The information is coming from a database and is on the HTML page through a Django template - so I have template tags like {{ author|safe }}
that holds each (in this case) author's name.
This is the code that I have in the Django template:
<html>
<head>
<body>
<h1>Testing the class page backend</h1>
<ul>
{% for edition in editions %}
<li>{{ edition|safe }}</li>
{% endfor %}
{% for image in images %}
<li>{{ image|safe }}</li>
{% endfor %}
{% for author in authors %}
<li>{{ author|safe }}</li>
{% endfor %}
{% for book_title in book_titles %}
<li>{{ book_title|safe }}</li>
{% endfor %}
</ul>
</body>
</html>