Weird html rendering anomaly
22:26 30 Aug 2012

I am unsure whether this problem is in Django or HTML, so I'm including both. This is the html that I see when I right click and select "view source":




    
    



Original Work

8 Post

This is what I get, and what seems to render, when I click inspect element in Google Chrome. You notice all the end tags are missing in form.




    
    

Original Work

8 Post

This is the CSS:

.posting_button {
    display:block;
    font-size:20px;
    width:100%;
}
.posting_title {
    text-align:center;
    display:block;
    color:black;
    font-size:30px;
    font-family:Arial, Helvetica, sans-serif;
    margin: 2px 0 15px 0;
}
.base_form label {
    font-size: 17px;
    font-family: arial;
    font-weight: bold;
    display: block;
}
.base_form > p {
    margin: 2px 0 5px 0;
}

This is the Django (if the problem is there):

Template:




    
    



Original Work
{{ form.as_p }} {{ id }} Post

Views.py

def posting_story_ow(request):
    if request.method == 'POST':
        d = 12
    return render_to_response('Posting/Forms/posting_post_ow.html', {'STATIC_URL':STATIC_URL, 'id' : request.GET['id'], 'alertnum': 0, 'form': post_ow})
javascript html css django