How to get Label alignment to top of TextField in form

205 views
Skip to first unread message

joulu tervehdys

unread,
Sep 13, 2015, 6:07:45 PM9/13/15
to django...@googlegroups.com
Hi,
I have TextField in model.
story = models.TextField()

When it shows up in form label is aligned down beside big Textarea.
Label should align top beside Textarea in order to get user see it first.

How to implement it so?

Thanks for help
- be ginner

Dmitry Homenok

unread,
Sep 14, 2015, 2:05:33 PM9/14/15
to Django users
Hey Mike,

Believe, you have to check the following methods of BaseForm class:
 - as_p
 - as_table
 - as_ul

There you'll find templates for html output.

- Dmitry
Reply all
Reply to author
Forward
0 new messages