Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Border Around A Row

Status
Not open for further replies.

richrich05

Programmer
Aug 15, 2005
24
0
0
US
I know this is simple but i've been beating my head into the walk trying remember and figure it out. How do i create a border around rows that are returned from the user's request?
 
We need more information in order to give a good answer.

Does your ASP code build an HTML table by iterating through an ADO recordset and writing one <TR> per row in the recordset?
 
Make sure your table has a cellspacing of 0, then put a border around the cells in the table and the table itself (only top and bottom of cells) then set the border-collapse attribute.

Code:
<html>
<head>
	<style>
		.myTable{
			border: 1px solid blue;
			border-collapse: collapse;
		}
		.myTable td{
			border-top: 1px solid blue;
			border-bottom: 1px solid blue;
		}
	</style>
</head>
<body>
<table cellspacing="0" cellpadding="0" class="myTable">
	<tr><td>A</td><td>B</td><td>C</td>
	<tr><td>A</td><td>B</td><td>C</td>
	<tr><td>A</td><td>B</td><td>C</td>
	<tr><td>A</td><td>B</td><td>C</td>
	<tr><td>A</td><td>B</td><td>C</td>
</table>

Is that what you were looking for?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top