View Full Version : Set border??
Coral_Lover
10-10-2002, 08:30 AM
Hi, does anyone know how to set the colour of each row in a table to have black borders???
glenngv
10-10-2002, 08:57 AM
<table border="1" bordercolor="black">
adios
10-10-2002, 07:13 PM
CSS for tables takes some experimentation...
<html>
<head>
<title>untitled</title>
<style type="text/css">
table {
width: 100%;
border-collapse: collapse;
}
td {
width: 25%;
height: 50px;
margin: 0px;
padding: 0px;
background: coral;
}
td.left {
border-top: 1px black solid;
border-left: 1px black solid;
border-bottom: 1px black solid;
}
td.inner {
border-top: 1px black solid;
border-bottom: 1px black solid;
}
td.right {
border-top: 1px black solid;
border-right: 1px black solid;
border-bottom: 1px black solid;
}
</style>
</head>
<body>
<table>
<tr>
<td class="left"></td><td class="inner"></td><td class="inner"></td><td class="right"></td>
</tr>
<tr>
<td class="left"></td><td class="inner"></td><td class="inner"></td><td class="right"></td>
</tr>
<td class="left"></td><td class="inner"></td><td class="inner"></td><td class="right"></td>
</table>
</body>
</html>
http://lists.evolt.org/index.cfm/a/harvest/b/detail/c/Week-of-20020527/d/4722?orderby=tip_date&orderdir=DESC
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.