Hi,
Here is the example for why to put the <div> inside the <td> tags (I
tried it on Safari and Internet Explorer on Mac and on both the margin
option is not taken into consideration for the <td> tag):
<?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">
<html
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
<style type="text/css">
<!--
.cellDiv {
margin: 20px;
background-color: #FFAAAA;
}
td {
margin: 20px;
background-color: #AAAAFF;
border: 1px solid black;
}
-->
</style>
<head>
<title>Girba Test</title>
</head>
<body>
<table border="0">
<tr>
<td>table cells as in SmallWiki</div></td>
<td>some cell</td>
</tr><tr>
<td>some cell</td>
<td>some cell</td>
</tr>
</table>
<table border="0" cellspacing="0">
<tr>
<td><div class="tableCell">table cells with a
div</div></td>
<td><div class="tableCell">some cell</div></td>
</tr><tr>
<td><div class="tableCell">some cell</div></td>
<td><div class="tableCell">some cell</div></td>
</tr>
</table>
</body>
</html>
On Tuesday, Nov 11, 2003, at 07:52 Europe/Zurich, Lukas Renggli wrote:
Hi,
these are some things that I missed or left out yesterday:
Tudor Girba <girba(a)iam.unibe.ch>ch>:
1. In the morning I manage to have a table by
putting | (now it does
not seem to work anymore). I saw that the <td> has no tags inside,
therefore it is not possible to have padding or margin css options
for the text in a cell. I suggest to have a <div class="tableCell">
there.
What about overloading the table-tags? This has the same effect as if
I put a <div class="tableCell"> into every cell, right?
Doru.
--
Tudor Adrian Girba Software Composition Group
(
www.iam.unibe.ch/~girba) University of Bern, Switzerland
"Problem solving efficiency grows with the abstractness level
of problem understanding."