How To Make Login And Register Header Tabs In Css
How to create a responsive login form with CSS?
Following is the code to create a responsive login course with CSS −
Example
Live Demo
<!DOCTYPE html> <html> <head> <meta proper noun="viewport" content="width=device-width, initial-scale=ane" /> <fashion> trunk { font-family unit: Arial, Helvetica, sans-serif; background-color: rgb(189, 189, 255); } form { border: 3px solid #f1f1f1; background-color: rgb(228, 228, 228); margin: 20px; } h1 { text-align: center; } input[blazon="text"], input[type="password"] { width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block; edge: 1px solid #ccc; box-sizing: border-box; font-size: 30px; } label { font-size: 30px; } button { font-weight: bold; font-family unit: monospace, sans-serif, serif; font-size: 25px; groundwork-color: #4caf50; colour: white; padding: 14px 20px; margin: 8px 0; border: none; cursor: arrow; width: 100%; } push:hover { opacity: 0.8; } .cancelbtn { width: motorcar; padding: 10px 18px; background-colour: #f44336; } .profilePic { text-align: center; margin: 24px 0 12px 0; } img.avatar { width: 200px; height: 200px; edge-radius: 50%; } .formFields { padding: 16px; } span.laissez passer { float: correct; padding-peak: 16px; } /* Change styles for span and cancel push on actress small screens */ @media screen and (max-width: 300px) { span.pass { display: block; float: none; } .cancelbtn { width: 100%; } } </mode> </caput> <body> <h1>Responsive Login Form Example</h1> <course> <div class="profilePic"> <img src="https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar- 1577909_960_720.png" alt="Avatar" class="avatar"/> </div> <div grade="formFields"> <characterization for="uname"><b>Username</b></label> <input type="text" placeholder="Enter Username" proper name="uname" required /> <label for="laissez passer"><b>Password</b></label> <input type="password" placeholder="Enter Countersign" name="pass" required/> <push button type="submit">Login</button> <label> <input type="checkbox" checked="checked" proper name="call back" /> Remember me </label> </div> <div class="formFields" manner="background-colour:#f1f1f1"> <push button blazon="push" class="cancelbtn">Cancel</push button> <span class="laissez passer">Forgot <a href="#">password?</a></span> </div> </form> </body> </html>
Output
This volition produce the post-obit output −
Published on 08-Apr-2020 09:13:22
- Related Questions & Answers
- How to create a responsive form with CSS?
- How to create a responsive navigation bill of fare with a login course inside it?
- How to create a social media login grade with CSS?
- How to create a responsive checkout form with CSS?
- How to create a responsive inline class with CSS?
- JavaScript: How to Create a Responsive Sliding Login and Registration Form?
- How to create a responsive navigation menu with a login grade inside of information technology with HTML and CSS?
- How to create a responsive image with CSS?
- How to create a responsive header with CSS?
- How to create a responsive table with CSS?
- Create a responsive pagination with CSS
- How to create responsive typography with CSS?
- How to create responsive testimonials with CSS?
- How to create a responsive image gallery with CSS
- How to create a responsive pricing table with CSS?
How To Make Login And Register Header Tabs In Css,
Source: https://www.tutorialspoint.com/how-to-create-a-responsive-login-form-with-css
Posted by: aldrichheak1969.blogspot.com
0 Response to "How To Make Login And Register Header Tabs In Css"
Post a Comment