| | | Error Fields |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Error Fields</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
fieldset
{
float: left;
clear: left;
width: 100%;
margin: 0 0 1.5em 0;
padding: 0;
border: 1px solid #BFBAB0;
background-color: #F2EFE9;
background-image: url(images/fieldset_gradient.jpg);
background-repeat: repeat-x;
}
legend
{
margin-left: 1em;
padding: 0;
color: #000000;
font-weight: bold;
}
fieldset ol
{
padding: 1em 1em 0 1em;
list-style: none;
zoom: 1;
}
fieldset li
{
float: left;
clear: left;
width: 100%;
padding-bottom: 1em;
}
label
{
position: relative;
float: left;
width: 10em;
margin-right: 1em;
}
label strong
{
position: absolute;
left: 27em;
top: 0.2em;
width: 19em;
color: #CC0000;
font-size: 85%;
font-weight: normal;
text-transform: uppercase;
}
label strong img
{
position: absolute;
left: -16em;
}
fieldset.submit
{
float: none;
width: auto;
border-style: none;
padding-left: 12em;
background-color: transparent;
background-image: none;
}
</style>
</head>
<body>
<div id="page">
<div id="header">
<h1>
Error Fields
</h1>
</div> <!-- END #header -->
<div id="content">
<p>
Fill in your details below.
</p>
<form action="example.php">
<fieldset>
<legend>
Contact Details
</legend>
<ol>
<li>
<label for="name">
Name: <strong><img src="images/error_cross.gif" alt="Error" /> This field is required</strong>
</label>
<input id="name" name="name" class="text" type="text" />
</li>
<li>
<label for="email">
Email address: <strong><img src="images/error_cross.gif" alt="Error" /> This must be a valid email address</strong>
</label>
<input id="email" name="email" class="text" type="text" />
</li>
<li>
<label for="phone">
Telephone:
</label>
<input id="phone" name="phone" class="text" type="text" />
</li>
</ol>
</fieldset>
<fieldset class="alt">
<legend>
Delivery Address
</legend>
<ol>
<li>
<label for="address1">
Address 1:
</label>
<input id="address1" name="address1" class="text" type="text" />
</li>
<li>
<label for="address2">
Address 2:
</label>
<input id="address2" name="address2" class="text" type="text" />
</li>
<li>
<label for="suburb">
Suburb/Town:
</label>
<input id="suburb" name="suburb" class="text" type="text" />
</li>
<li>
<label for="postcode">
Postcode: <strong><img src="images/error_cross.gif" alt="Error" /> This field is required</strong>
</label>
<input id="postcode" name="postcode" class="text textSmall" type="text" />
</li>
<li>
<label for="country">
Country: <strong><img src="images/error_cross.gif" alt="Error" /> This field is required</strong>
</label>
<input id="country" name="country" class="text" type="text" />
</li>
</ol>
</fieldset>
<fieldset class="submit">
<input class="submit" type="submit" value="Begin download" />
</fieldset>
</form>
</div><!-- END #content -->
</div> <!-- END #page -->
</body>
</html>
|
|
|
|
| Related examples in the same category |
|