Create Responsive Account Form Using HTML And CSS

Create a free account

Account Information

Personal Information

Terms and Mailing

I want to recelve personallzed offers by your site

Its features:

  • You can attach more information lines as needed.

  • You can change the model color via CSS if you want.

  • It is completly responsive account form.

  • You can use different type font styles as you wish.

Try to create like yourself by following the codes below :

Step 1) Add to head : <link href=',300,300italic,400italic,600' rel='stylesheet' type='text/css'> <link href=",400,500,700" rel="stylesheet">
Step 2) Add to html : <h2>Create Responsive Account Form With HTML And CSS</h2> <div class="fifteen"> <div class="main-block"> <form action="/"> <h1>Create a free account</h1> <fieldset> <legend> <h3>Account Information</h3> </legend> <div class="account-details"> <div> <label>Email<p01>*</p01></label> <input type="text" name="name" required> </div> <div> <label>Password<p01>*</p01></label> <input type="password" name="name" required> </div> <div> <label>Repeat email<p01>*</p01></label> <input type="text" name="name" required> </div> <div> <label>Repeat password<p01>*</p01></label> <input type="password" name="name" required> </div> </div> </fieldset> <fieldset> <legend> <h3>Personal Information</h3> </legend> <div class="personal-details"> <div> <div> <label>Name<p01>*</p01></label> <input type="text" name="name" required> </div> <div> <label>Phone<p01>*</p01></label> <input type="text" name="name" required> </div> <div> <label>Street</label><input type="text" name="name"> </div> <div> <label>City<p01>*</p01></label> <input type="text" name="name" required> </div> <div> <label>Country<p01>*</p01></label> <select> <option value=""></option> <option value="Armenia">Bangladesh</option> <option value="Armenia">Armenia</option> <option value="Russia">Russia</option> <option value="Germany">Germany</option> <option value="France">France</option> <option value="USA">USA</option> <option value="UK">UK</option> </select> </div> <div> <label>Website</label><input type="text" name="name"> </div> </div> <div> <div> <label>Gender<p01>*</p01></label> <div class="gender"> <input type="radio" value="none" id="male" name="gender" required/> <label for="male" class="radio">Male</label> <input type="radio" value="none" id="female" name="gender" required/> <label for="female" class="radio">Female</label> </div> </div> <div class="birthdate"> <label>Birthdate<p01>*</p01></label> <div class="bdate-block"> <select class="day" required> <option value=""></option> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> <option value="07">07</option> <option value="08">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select class="mounth" required> <option value=""></option> <option value="January">January</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> <input type="text" name="name" required> </div> </div> <div> <label>Nationality<p01>*</p01></label> <select required> <option value=""></option> <option value="English">Bangladeshi</option> <option value="Armenian">Armenian</option> <option value="Russian">Russian</option> <option value="German">German</option> <option value="French">French</option> <option value="American">American</option> <option value="English">English</option> </select> </div> <div> <label>Children<p01>*</p01></label> <div class="children"> <input type="checkbox" name="name" required> </div> </div> </div> </div> </fieldset> <fieldset> <legend> <h3>Terms and Mailing</h3> </legend> <div class="terms-mailing"> <div class="checkbox"> <input type="checkbox" name="checkbox"> <span> I accept the <a href="">Privacy Policy for</a> </span> </div> <div class="checkbox"> <input type="checkbox" name="checkbox"> <span> I want to recelve personallzed offers by your site </span> </div> </fieldset> <button type="submit" href="/">Submit</button> </form> </div> </div>
Step 3) Add to css : .fifteen{ min-height: 100%; } .fifteen, div, form, input, select, p { padding: 0; margin: 0; outline: none; font-family: Roboto, Arial, sans-serif; font-size: 14px; color:black; } .fifteen h1 { margin: 0; font-weight: 400; } .fifteen h3 { margin: 12px 0; color: green; } .main-block { display: flex; justify-content: center; align-items: center; background: #cad2d5; border-radius:10px; } form { width: 100%; padding: 20px; } fieldset { border: none; border-top: 1px dotted #82b534; } .account-details, .personal-details { display: flex; flex-wrap: wrap; justify-content: space-between; } .account-details >div, .personal-details >div >div { display: flex; align-items: center; margin-bottom: 10px; } .account-details >div, .personal-details >div, input, label { width: 100%; } label { padding: 0 5px; text-align: right; vertical-align: middle; } label p01{ color:red; font-size:20px; } input { padding: 5px; vertical-align: middle; } .checkbox { margin-bottom: 10px; } select, .children, .gender, .bdate-block { width: calc(100% + 26px); padding: 5px 0; } select { background: transparent; } .gender input { width: auto; } .gender label { padding: 0 5px 0 0; } .bdate-block { display: flex; justify-content: space-between; } .birthdate { width: 40px; } .birthdate select.mounth { width: calc(100% - 94px); } .birthdate input { width: 38px; vertical-align: unset; } .checkbox input, .children input { width: auto; margin: -2px 10px 0 0; } .checkbox a { color:blue; } .checkbox a:hover { color: #82b534; } button { width: 100%; padding: 10px 0; margin: 10px auto; border-radius: 5px; border: none; background: #2c5f2d; font-size: 14px; font-weight: 600; color: #fff; } button:hover { background: #82b534; } @media (min-width: 568px) { .account-details >div, .personal-details >div { width: 50%; } label { width: 40%; } input { width: 60%; } select, .children, .gender, .bdate-block { width: calc(60% + 16px); }

Thank you sir

Congratulations to you on visiting our page.

If you have any feedback, you can give advice through the "Contact Me" form.