Example -
<!DOCTYPE html>
<title>My Example</title>
<style>
.myForm {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 0.8em;
padding: 1em;
border: 1px solid #ccc;
border-radius: 3px;
}
.myForm * {
box-sizing: border-box;
}
.myForm label {
padding: 0;
font-weight: bold;
}
.myForm input {
border: 1px solid #ccc;
border-radius: 3px;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 0.9em;
padding: 0.5em;
}
.myForm input[type="email"],
.myForm input[type="password"] {
width: 12em;
}
.myForm button {
padding: 0.7em;
border-radius: 0.5em;
background: #eee;
border: none;
font-weight: bold;
}
.myForm button:hover {
background: #ccc;
cursor: pointer;
}
</style>
<form class="myForm" method="get" action="/html/codes/html_form_handler.cfm">
<p>
<label>Email
<input type="email" name="user_email" required>
</label>
<label>Password
<input type="password" name="user_pwd" required>
</label>
<button>Log In</button>
</p>
<p>
<label>
<input type="checkbox"> Remember me
</label>
</p>
</form>
Output -
0 comments:
Post a Comment