Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django Basics Django Templates Static Assets

Simon Amz
Simon Amz
4,606 Points

The div "site-container" isn't working

Hi,

I have a problem about style. When I do the steps, I haven't "Welcome!" in a container.

I wanted to know if something is in the file learning_site/assets/css.layout.css. If it is, then that's why nothing happens.

Indeed, what is the class "site-container"? is it a pre-computerized class?

Thanks for your help

1 Answer

Simon Amz
Simon Amz
4,606 Points
{% load static from staticfiles %}
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{% block title %} {% endblock %}</title>
        <link rel="stylesheet" href="{% static '/css/layout.css' %}">
    </head>
    <body>
        <div class="site-container">
            {% block content %} {% endblock %}
        </div>
    </body>
</html>

a div has been added with a class site-container, and my website page doesn't take it into account.