Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thanh committed Aug 2, 2015
0 parents commit 97180fb
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Web Form</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
</head>
<body>
<div id="header"><h1>Contact us!</h1></div>
<div id="wrapper">
<div id="inputs">
<form name="input" action="#" method="post">
First name: <input type="text" name="firstname" value="first name"><br/>
Last name: <input type="text" name="lastname" value="last name"><br/>
E-mail: <input type="email" name="email" value="e-mail address"><br/><br/>
</form>
</div>
<div>
<form id="options">
Message: <br/><textarea name="msg"></textarea><br>
Sex: <input type="radio" name="sex" value="male">Male
<input type="radio" name="sex" value="female">Female<br><br>
<input type="checkbox" name="notify" value="updates" checked>I would like to receive notices when this website updates.<br>
<input type="checkbox" name="notify" value="services">I would like to receive notices pertaining to related websites and their services.<br><br>
<input type="submit" value="Submit">
</form>
</div>
</div>
</body>
</html>
45 changes: 45 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#header {
position: relative;
top: -10px;
background-color: #00a0b0;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
height: 40px;
}
h1 {
font-family: Lobster;
color:#fff;
text-align: center;
}
form {
font-family: verdana, arial, sans-serif;
}
p {
font-family: verdana, arial, sans-serif;
display: inline-block;
}
input {
font-family: verdana, arial, sans-serif;
color: #777;
}
textarea{
vertical-align: top;
width: 400px;
color: #777;
}
#wrapper {
border: 1px solid #888;
position: relative;
top: -10px;
padding: 10px 20px;
box-shadow: 3px 3px 3px #444;
font-size: 0.8em;
}
#inputs {
width: 200px;
clear: both;
}
#inputs input {
width: 100%;
clear: both;
}

0 comments on commit 97180fb

Please sign in to comment.