<form>
<h1>Newsletter Signup</h1>
<p>No spam, unsubscribe at any time.</p>
<div class="info">
<input type="text" placeholder="Your Name">
<input type="email" placeholder="Your Email">
</div>
<input type="submit" value="Subscribe">
</form>
@import url(https://fonts.googleapis.com/css?family=Lato:400,700);
@import url(https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700);
body{
background: #ddd;
font-family: 'PT Sans Narrow';
}
h1 {
text-transform: uppercase;
font-size: 30px;
letter-spacing: 1px;
margin: 0;
padding: 0;
}
p{
margin: 0 0 15px 0;
padding: 0;
color: #555;
font-style: italic;
font-size: 14px;
}
form{
width: 428px;
margin: 50px auto;
padding: 50px;
}
input {
font-family: 'PT Sans Narrow';
font-size: 20px;
}
.info{
display: inline-block;
margin-right: 5px;
}
.info input {
display: block;
width: 300px;
height: 20px;
border: 0;
border-radius: 3px;
margin: 0 0 10px 0;
padding: 12px 10px;
background: #fff;
}
.info input:last-child {
margin: 0;
}
.info input:focus {
background: #eee;
outline: none;
}
input[type="submit"]{
vertical-align: top;
height: 98px;
width: 98px;
margin: 0;
padding: 0;
border: 0;
border-radius: 3px;
background: pink;
cursor: pointer;
font-weight: 700;
letter-spacing: 1px;
color: #fff;
background: linear-gradient(45deg, #FF6C54, #FFA754);
}
input[type="submit"]:hover{
background: linear-gradient(180deg, #FF6C54, #FFA754);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.