This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2005 > Bordercolors in tables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Bordercolors in tables
Daluiso

2005-03-30, 7:36 am

Hello,

I want to make a table of 32 rows with only the bottomborders colored, as if all text is underlined over the whole width of the table.

Anyone know how to do this?
ZhongQiang

2005-03-30, 7:37 am

yeah... just create a style sheet, and apply the style to the last <tr> or
<td> tag on your table. =D

.btmLine {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000000;
}

Osgood

2005-03-30, 7:37 am

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
#myTable td {
border-bottom: 1px solid #000;
}
-->
</style>
</head>

<body>
<table id="myTable" width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>text</td>
</tr>
<tr>
<td>text</td>
</tr>
<tr>
<td>text</td>
</tr>
<tr>
<td>text</td>
</tr>
<tr>
<td>text</td>
</tr>
<tr>
<td>text</td>
</tr>
</table>
</body>
</html>











Daluiso wrote:
> Hello,
>
> I want to make a table of 32 rows with only the bottomborders colored, as if all text is underlined over the whole width of the table.
>
> Anyone know how to do this?


ZhongQiang

2005-03-30, 7:37 am

yeah... just create a style sheet, and apply the style to the last <tr> or
<td> tag on your table. =D

.btmLine {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000000;
}

ZhongQiang

2005-03-30, 7:37 am

woops.. apologies for the duplicate.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews