"Neal" wrote
KiwiBrian wrote:
I have a snippet of a few CSS rules that I insert in a page as a
diagnostic
tool
It places borders around specified tags.
However I have been unable to get it to display borders on table rows.
Is there any way of doing this.
Er... tr {border:1px red dotted}?
Not in IE6 in XP Pro in a PC.
Just tried the following, with narry a row border in sight.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Test</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
div.centered {text-align: center;}
div.centered table {margin: 0 auto; text-align: left;}
tr {
border: 25px blue dotted;
padding: 25px;
margin: 25px;
}
td {
border:25px red solid;
padding: 25px;
margin: 25px;
}
table {
border: 25px green solid;
padding: 25px;
margin: 25px;
}
-->
</style>
</head>
<body>
<div class="centered">
<table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</table>
</div>
</body>
</html>
Brian Tozer