Issue
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;
}
Solution
You can try
{% for i in objects %}
<div class="titleblog">
<a href="{{i.id}}">{{i.titleblog}}</a>
<b>{{i.message | lower}}</b>
</div>
{% endfor %}
Answered By - Leonardo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.