Hi,
In your case you used padding, but I wanted margin. Why should the user
be restricted to use margin for the table text?
In the example I provided you can use them both.
Note that you should also add to the <table> tag cellspacing = "0",
because as it is now, you always have a small distance between the
cells, and you cannot control that. So by default, there is not
distance between cells, but if someone wants it, that he/she can use
the margin capability.
Doru.
On Tuesday, Nov 11, 2003, at 17:31 Europe/Zurich, Lukas Renggli wrote:
<?xml
version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1 >>
strict.dtd">
[...]
The following code works on Safari and Mozilla, I don't have Internet
Explorer so I cannot test there.
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Renggli</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<style type="text/css">
<!--
td {
padding: 20px;
}
-->
</style>
</head>
<table>
<tr>
<td>a11</td>
<td>a12</td>
</tr>
<tr>
<td>a21</td>
<td>a22</td>
</tr>
</table>
<body>
</body>
</html>
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
I think you used the wrong edge-type in your css-specification, have a
look at the first picture at
http://www.w3.org/TR/CSS2/box.html to
learn about the edge-types.
Cheers,
Lukas
--
Lukas Renggli
http://renggli.freezope.org
--
Tudor Adrian Girba Software Composition Group
(
www.iam.unibe.ch/~girba) University of Bern, Switzerland
"Every thing should have the right to be different."