HTML Code:
<!DOCTYPE html>
<html>
<head>
<title>My Web Site Login</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="generator" content="Bluefish 2.2.6" >
<meta name="author" content="Floyd" >
<meta name="date" content="2015-02-17T13:59:52-0600" >
<meta name="copyright" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="expires" content="0">
<link href="style/ws2.css" rel="stylesheet">
<!--[if lt IE 9]>
<script scr="html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
.subform {
font-size: 1em;
color: #000;
font-family: Tahoma, Geneva, sans-serif;
background: #2F4F4F;
border-bottom: 1px solid #000;
#border-left: 1px solid #000;
border-top: none;
}
.topspace {
margin-top: 60px;
}
.subform .label {
text-transform: uppercase;
display: inline;
width: 180px;
vertical-align: top;
text-align: right;
margin-right: 10px;
font-weight: bold;
color: #000;
}
.subform input[type="submit"] {
margin-left: 46%;
padding: 10px 25px;
font-size: 1em;
color: #000;
background: rgb(0,102,153);
background: -webkit-linear-gradient(rgba(0,0,0,.1) 40%,
rgba(255,255,255,.5));
background: -moz-linear-gradient(rgba(0,0,0,.1) 40%,
rgba(255,255,255,.5));
background: -o-linear-gradient(rgba(0,0,0,.1) 40%,
rgba(255,255,255,.5));
background: linear-gradient(rgba(0,0,0,.1) 40%,
rgba(0,0,0,.5));
border: 1px solid #000;
border-radius: 20px;
box-shadow: 0 0 4px white;
}
.subform input[type="submit"]:hover {
background-color: #FFF5EE;
}
.subform select {
font-size: 1.2em;
}
.subform input[type="text"] {
border-radius: 5px;
border: 1px solid #000;
background-color: rgba(255,255,255,.7);
color: #000;
font-size: 1em;
box-shadow: inset 0 0 10px rgba(0,0,0,.75);
width: 300px;
padding: 5px;
}
.txtarea {
font-size: 1.3em;
border-radius: 5px;
border: none;
background-color: rgba(255,255,255,.7);
color: #000;
box-shadow: inset 0 0 10px rgba(0,0,0,.75);
width: 300px;
padding: 5px;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
<h1>My Web Site</h1>
</div>
<div id="navigation">
<ul>
<li><a href="index.html"><span>Home</span></a></li>
<li><a href="about.html"><span>About Us</span></a></li>
<li><a href="services.html"><span>Services</span></a></li>
<li><a href="register.php"><span>Register</span></a></li>
<li><a href="client.php" class="active"><span>Client Area</span></a></li>
<li><a href="contact.php"><span>Contact Us</span></a></li>
</ul>
</div>
<h2 id="h2">Add New Attendee</h2>
<!--div id="content-container"-->
<form method="post" class="subform" action="<?php echo htmlentities($_SERVER['PHP_SELF']);?>">
<div id="left">
<p>
<label for="fname" class="label">first name:</label><br>
<input type="text" name="fname" placeholder="First Name" value="<?php if (isset($_POST['fname'])) { echo $fname; } ?>">
<span class="error"> <?php echo $fnameErr;?></span>
</p><br>
<p>
<label for="lname" class="label">last name:</label><br>
<input type="text" name="lname" placeholder="Last Name" value="<?php if (isset($_POST['lname'])) { echo $lname; } ?>">
<span class="error"><?php echo $lnameErr;?></span>
</p><br>
<p>
<label for="add1" class="label">address 1:</label><br>
<input type="text" name="add1" placeholder="Address 1" value="<?php if (isset($_POST['add1'])) { echo $add1; } ?>">
<span class="error"> <?php echo $add1Err;?></span>
</p><br>
<p>
<label for="add2" class="label">address 2:</label><br>
<input type="text" name="add2" placeholder="Address 2" value="<?php if (isset($_POST['add2'])) { echo $add2; } ?>">
<span class="error"><?php echo $add2Err;?></span>
</p><br>
<p>
<label for="city" class="label">city:</label><br>
<input type="text" name="city" placeholder="City" value="<?php if (isset($_POST['city'])) { echo $city; } ?>">
<span class="error"> <?php echo $cityErr;?></span>
</p><br>
</div>
<div id="middle">
<p>
<label for="state" class="label">state:</label><br>
<input type="text" name="state" placeholder="State" value="<?php if (isset($_POST['state'])) { echo $state; } ?>">
<span class="error"><?php echo $stateErr;?></span>
</p><br>
<p>
<label for="zip" class="label">zipcode:</label><br>
<input type="text" name="zip" placeholder="Zipcode" value="<?php if (isset($_POST['zip'])) { echo $zip; } ?>">
<span class="error"> <?php echo $zipErr;?></span>
</p><br>
<p>
<label for="phone" class="label">phone number:</label>
<input type="text" name="phone" placeholder="000-000-0000" value="<?php if (isset($_POST['phone'])) { echo $phone; } ?>">
<span class="error"><?php echo $phoneErr;?></span>
</p><br>
<p>
<label for="dojid" class="label">doj id:</label><br>
<input type="text" name="dojid" placeholder="000000000" value="<?php if (isset($_POST['dojid'])) { echo $dojid; } ?>">
<span class="error"> <?php echo $dojidErr;?></span>
</p><br>
<p>
<label for="po" class="label">parole officer:</label><br>
<input type="text" name="po" placeholder="Parole Officer" value="<?php if (isset($_POST['po'])) { echo $po; } ?>">
<span class="error"><?php echo $poErr;?></span>
</p><br>
</div>
<div id="right">
<p>
<label for="cr" class="label">Restrictions:</label><br>
<input type="radio" name="cr" value="Yes" checked><strong>Yes</strong>
<input type="radio" name="cr" value="No"><strong>No</strong>
<span class="error"> <?php echo $crErr;?></span>
</p><br>
<p>
<label for="disdate" class="label">discharge date:</label><br>
<input type="text" name="disdate" placeholder="YYYY-MM-DD" value="<?php if (isset($_POST['disdate'])) { echo $disdate; } ?>">
<span class="error"><?php echo $disdateErr;?></span>
</p><br>
<p>
<label for="details" class="label">case details:</label><br>
<textarea class="txtarea" rows="10" cols="50" name="details" placeholder="Case Details" value="<?php if (isset($_POST['details'])) { echo $details; } ?>">
</textarea>
<span class="error"><?php echo $detailsErr;?></span>
</p><br>
<input type="submit" value="Submit"><br /><br>
</div>
</form>
<!--/div-->
<div id="footer">
<p>Copyright © My Web Site, 2015</p>
</div>
</div>
</body>
</html>
And here is the style sheet for the 3-column liquid layout:
Bookmarks