Code:
<style>
form {
border: 2px solid #CCC;
width: 50%;
}
#name {
padding: 10px;
}
#email {
padding: 10px;
}
#submit {
padding: 10px;
}
input[type=text]{
width: 100%;
padding: 10px;
}
input[type=email]{
width: 100%;
padding: 10px;
}
input[type=submit]{
background-color:#690;
padding: 10px;
color: white;
font-weight:bold;
border: 1px solid black;
width: 30%;
}
</style>
<form>
<div id="name">
<input type="text" placeholder="Name" />
</div>
<div id="email">
<input type="email" placeholder="Email" />
</div>
<div id="submit">
<input type="submit" value="Submit" />
</div>
</form>
Comments
Post a Comment