Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Form With Advanced File Upload"
Bootstrap 4.1.1 Snippet by
KhuramMemon
4.1.1
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
35.3K
 
12 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- Copy this code in your html file. --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>PHP Form</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"/> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"/> </head> <body> <div class="container"> <div class="Back"> <i class="fa fa-arrow-left" onclick="Back()"></i> </div> <p class="h2 text-center">Form</p> <form action="" method="post"> <div class="preview text-center"> <img class="preview-img" src="http://simpleicon.com/wp-content/uploads/account.png" alt="Preview Image" width="200" height="200"/> <div class="browse-button"> <i class="fa fa-pencil-alt"></i> <input class="browse-input" type="file" required name="UploadedFile" id="UploadedFile"/> </div> <span class="Error"></span> </div> <div class="form-group"> <label>Full Name:</label> <input class="form-control" type="text" name="fullname" required placeholder="Enter Your Full Name"/> <span class="Error"></span> </div> <div class="form-group"> <label>Email:</label> <input class="form-control" type="email" name="email" required placeholder="Enter Your Email"/> <span class="Error"></span> </div> <div class="form-group"> <label>Password:</label> <input class="form-control" type="password" name="password" required placeholder="Enter Password"/> <span class="Error"></span> </div> <div class="form-group"> <label>Gender:</label><br/> <label><input type="radio" name="gender" required value="Male" checked /> Male</label> <label><input type="radio" name="gender" required value="Female" /> Female</label> <label><input type="radio" name="gender" required value="Other" /> Other</label> <span class="Error"></span> </div> <div class="form-group"> <input class="btn btn-primary btn-block" type="submit" value="Submit"/> </div> </form> </div> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> </body> </html>
/* Copy this code in your css file. */ html,body { width: 500px; margin: auto; } .container { width: 500px; margin: 20px auto; } .preview { padding: 10px; position: relative; } .preview i { color: white; font-size: 35px; transform: translate(50px,130px); } .preview-img { border-radius: 100%; box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.7); } .browse-button { width: 200px; height: 200px; border-radius: 100%; position: absolute; /* Tweak the position property if the element seems to be unfit */ top: 10px; left: 132px; background: linear-gradient(180deg, transparent, black); opacity: 0; transition: 0.3s ease; } .browse-button:hover { opacity: 1; } .browse-input { width: 200px; height: 200px; border-radius: 100%; transform: translate(-1px,-26px); opacity: 0; } .form-group { width: 250px; margin: 10px auto; } .form-group input { transition: 0.3s linear; } .form-group input:focus { border: 1px solid crimson; box-shadow: 0 0 0 0; } .Error { color: crimson; font-size: 13px; } .Back { font-size: 25px; }
// Copy this code in your js file. function Back() { window.history.back(); }
Related:
See More
Template
Paper Dashboard Pro
465.1K
45
login-form
171.2K
18
Login Form
142.4K
51
Contact Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76