Hi am struggling with the challenge with css where i wish to create a blue border around part of a table. I tried creating a span element giving it a class from the style sheet and using CSS border-right, border-left border-bottom attributes to create a border around part of the table but this did not work. I then tried creating a boarder on the left and the right of the table. Then setting the border as 0 for left and right this did not work as the border still shows. please cut and paste this code into HTML editor and give it a go. Thanks.
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {color: black; background: #cbe5fe;}
table { width: 280px; border-right: solid #5387B8 1px ; border-left: solid #5387B8 1px; }
tr td{font-size: 75%; font-family: Arial, Helvetica, Verdana, sans-serif; padding: 0.1em 0.2em 0;}
tr.heading td{background: #5387B8; font-weight: bold; font-size: 85%; font-family: Arial, Helvetica, Verdana, sans-serif; color: white; border: solid #5387B8; border-top: 1px;}
span.table-body td{background: #f2f2f2; font-weight: bold;}
tr.footer td{border-right: 0 ; border-left: 0; border-top: solid #5387B8 1px;}
</style>
</head>
<body>
<form name="register" method="post" action="register_site.asp?action=Submit_Validate">
<div align="center"> <table cellspacing="0">
<tr class="heading">
<td colspan="2" >
Your Details:
</td>
</tr>
<span class="table-body">
<tr>
<td width="35%"> </td>
<td width="65%">
<input type="hidden" name="existing_email" value="angus.grant@tdci.eu.com">
<input type="hidden" name="Mask" value="1">
</td>
</tr>
<tr>
<td width="35%">
<div align="left">Title:
</div>
</td>
<td width="65%">
<select name="Title">
<option value="Mr" >Mr</option>
<option value="Mrs" >Mrs</option>
<option value="Miss" >Miss</option>
<option value="Dr">Dr</option>
</select>
</td>
</tr>
<tr>
<td width="35%">
<div align="left"><span class="basketoverview">Forename:</span>
</div>
</td>
<td width="65%">
<input type="text" name="Forename" size="28" value="Angus " maxlength="50">
</td>
</tr>
<tr>
<td width="35%" height="32">
<div align="left"><span class="basketoverview">Surname:</span>
</div>
</td>
<td width="65%" height="32">
<input type="text" name="Sirname" size="28" value="Grant " maxlength="50">
</td>
</tr>
<tr>
<td width="35%">
<div align="left"><span class="basketoverview">E-mail: </span>
</div>
</td>
<td width="65%">
<input type="text" name="Email_Address" value="angus.grant@tdci.eu.com" size="28" maxlength="50">
</td>
</tr>
<tr>
<td width="35%" height="19"> </td>
<td width="65%" height="19"> </td>
</tr>
</span>
<tr class="footer">
<td colspan="2">
<div align="right">
<input type="submit" name="Submit" onclick="return checkEmail(this)" value="Send">
</div>
</td>
</tr>
</table></div>
</form>
Angus
http\\http\\
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {color: black; background: #cbe5fe;}
table { width: 280px; border-right: solid #5387B8 1px ; border-left: solid #5387B8 1px; }
tr td{font-size: 75%; font-family: Arial, Helvetica, Verdana, sans-serif; padding: 0.1em 0.2em 0;}
tr.heading td{background: #5387B8; font-weight: bold; font-size: 85%; font-family: Arial, Helvetica, Verdana, sans-serif; color: white; border: solid #5387B8; border-top: 1px;}
span.table-body td{background: #f2f2f2; font-weight: bold;}
tr.footer td{border-right: 0 ; border-left: 0; border-top: solid #5387B8 1px;}
</style>
</head>
<body>
<form name="register" method="post" action="register_site.asp?action=Submit_Validate">
<div align="center"> <table cellspacing="0">
<tr class="heading">
<td colspan="2" >
Your Details:
</td>
</tr>
<span class="table-body">
<tr>
<td width="35%"> </td>
<td width="65%">
<input type="hidden" name="existing_email" value="angus.grant@tdci.eu.com">
<input type="hidden" name="Mask" value="1">
</td>
</tr>
<tr>
<td width="35%">
<div align="left">Title:
</div>
</td>
<td width="65%">
<select name="Title">
<option value="Mr" >Mr</option>
<option value="Mrs" >Mrs</option>
<option value="Miss" >Miss</option>
<option value="Dr">Dr</option>
</select>
</td>
</tr>
<tr>
<td width="35%">
<div align="left"><span class="basketoverview">Forename:</span>
</div>
</td>
<td width="65%">
<input type="text" name="Forename" size="28" value="Angus " maxlength="50">
</td>
</tr>
<tr>
<td width="35%" height="32">
<div align="left"><span class="basketoverview">Surname:</span>
</div>
</td>
<td width="65%" height="32">
<input type="text" name="Sirname" size="28" value="Grant " maxlength="50">
</td>
</tr>
<tr>
<td width="35%">
<div align="left"><span class="basketoverview">E-mail: </span>
</div>
</td>
<td width="65%">
<input type="text" name="Email_Address" value="angus.grant@tdci.eu.com" size="28" maxlength="50">
</td>
</tr>
<tr>
<td width="35%" height="19"> </td>
<td width="65%" height="19"> </td>
</tr>
</span>
<tr class="footer">
<td colspan="2">
<div align="right">
<input type="submit" name="Submit" onclick="return checkEmail(this)" value="Send">
</div>
</td>
</tr>
</table></div>
</form>
Angus
http\\http\\