Login Form
How do I make an login form?
Does this need explanation? (Updated 1/28/2016). What is a login form? How do you make a login form? This script and codes were developed by Miro Karilahti on 07 July 2022, Thursday.
Login Form - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Login Form</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="login"> <div class="login-triangle"></div> <h2 class="login-header">Log in</h2> <form class="login-container"> <p><input type="email" placeholder="Email"></p> <p><input type="password" placeholder="Password"></p> <p><input type="submit" value="Log in"></p> </form>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Login Form - Script Codes CSS Codes
/** * 01/28/2016 * This pen is years old, and watching at the code after all * those years made me fall from my chair, so I: * - changed all IDs to classes * - converted all units to pixels and em units * - changed all global elements to classes or children of * .login * - cleaned the syntax to be more consistent * - added a lot of spaces that I so hard tried to avoid * a few years ago * (because it's cool to not use them) * - and probably something else that I can't remember anymore * * I sticked to the same philosophy, meaning: * - the design is almost the same * - only pure HTML and CSS * - no frameworks, preprocessors or resets */
/* 'Open Sans' font from Google Fonts */
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
body { background: #456; font-family: 'Open Sans', sans-serif;
}
.login { width: 400px; margin: 16px auto; font-size: 16px;
}
/* Reset top and bottom margins from certain elements */
.login-header,
.login p { margin-top: 0; margin-bottom: 0;
}
/* The triangle form is achieved by a CSS hack */
.login-triangle { width: 0; margin-right: auto; margin-left: auto; border: 12px solid transparent; border-bottom-color: #28d;
}
.login-header { background: #28d; padding: 20px; font-size: 1.4em; font-weight: normal; text-align: center; text-transform: uppercase; color: #fff;
}
.login-container { background: #ebebeb; padding: 12px;
}
/* Every row inside .login-container is defined with p tags */
.login p { padding: 12px;
}
.login input { box-sizing: border-box; display: block; width: 100%; border-width: 1px; border-style: solid; padding: 16px; outline: 0; font-family: inherit; font-size: 0.95em;
}
.login input[type="email"],
.login input[type="password"] { background: #fff; border-color: #bbb; color: #555;
}
/* Text fields' focus effect */
.login input[type="email"]:focus,
.login input[type="password"]:focus { border-color: #888;
}
.login input[type="submit"] { background: #28d; border-color: transparent; color: #fff; cursor: pointer;
}
.login input[type="submit"]:hover { background: #17c;
}
/* Buttons' focus effect */
.login input[type="submit"]:focus { border-color: #05a;
}
Developer | Miro Karilahti |
Username | miroot |
Uploaded | July 07, 2022 |
Rating | 4.5 |
Size | 2,519 Kb |
Views | 56,672 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Simple personal profile | 2,856 Kb |
Corner Ribbons | 1,911 Kb |
Button with sliding information | 2,387 Kb |
Expanding Photo Stack | 2,083 Kb |
Flat Text Editor | 2,468 Kb |
Pure CSS Card Deck | 3,245 Kb |
Social Icons | 2,941 Kb |
Calendar | 2,033 Kb |
Navigation | 2,298 Kb |
Flat sidebar | 2,664 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
RPG Style Text Dialogue | Odylic | 2,635 Kb |
Template | Indra_z85 | 2,323 Kb |
Incremental game | Eprouver | 5,868 Kb |
Zeichensatz | Moklick | 2,058 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
Classy Blockquote Styling | Andrewwright | 3,212 Kb |
A Pen by utcwebdev | Utcwebdev | 2,856 Kb |
CSS3 Form | Tusharbandal | 1,836 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
No Vacancy 404 CSS Only | Sethkontny | 0 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!