Python Forum
I am trying to space the registration forms using css. But it is not working.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I am trying to space the registration forms using css. But it is not working.
Can someone explain how to fix it? I am using python flask and wtf forms.

link to wtf forms


from wtforms import Form, BooleanField, StringField, PasswordField, validators
# what does Form do
class RegistrationForm(Form):
    username = StringField('Username', [validators.Length(min=2, max=25)])
    email = StringField('Email', [validators.Length(min=4, max=25)])
    password = PasswordField('New Password', [
    validators.EqualTo('confirm', message='Passwords must match')

    confirm_password = PasswordField('Repeat Password')


    display: block;

<!DOCTYPE html>
        <title> register </title>
        <link rel="stylesheet" type="text/css" href="register.css"/>
        <form action="/register" id="register_forms"  method="POST">
       fields/16379203 -->        
            <label for="username">
            <label for="email">

            <label for="password">  
            <label for="password_form">
                Confirm Password
                <input type = "button"  Submit value = "Submit" >

output of the code imgur link


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to fill text fields web forms Martinelli 1 981 Sep-25-2019, 11:14 PM
Last Post: Martinelli
  How to get data from forms? dmytruk 1 1,242 Apr-02-2019, 10:53 PM
Last Post: dmytruk
  Forms, python, passlib and other questions marienbad 1 1,297 Feb-05-2019, 04:23 AM
Last Post: snippsat
  Forms to render "Guide in steps" or not? stablepeak 1 1,237 Nov-29-2018, 10:05 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020