How to fix css in django cycle?

Viewed 24

I want to do div titleblog and do magrin-top:100px,but it isnt working in django cycle..Idk why.I tried to do <a class='titleblog',but it wasnt working). P.S css file is attached at html file.CSS file is working,because navigation panel is displaying.

blog.html

<div class="titleblog">
{% for i in objects  %}
<a href="{{i.id}}">{{i.titleblog}}</a>
<b>{{i.message | lower}}</b>
{% endfor %}
</div>

home.css

.titleblog{
    margin-top: 100px;
}
1 Answers

You can try

{% for i in objects  %}
<div class="titleblog">
    <a href="{{i.id}}">{{i.titleblog}}</a>
    <b>{{i.message | lower}}</b>
</div>
{% endfor %}
Related