|
Posted by frederick on 04/22/06 17:12
Markus.Baerlocher@lau-net.de wrote:
> i would like to make a I 2-column-layout with <table>.
>
> How do i make a space between the two "columns"?
Question: Do you really need to use tables for layout, rather than CSS?
Assuming that the answer is "yes", then you could insert a dummy table
between the other two and set its width to 8%. In other words:
..container {
border: 1px sold #003399;
}
#main {
width: 100%;
}
#left, #right {
width: 46%;
}
#dummy {
width: 8%;
}
<TABLE class="container" id="main">
<TR>
<TD>
<TABLE class="container" id="left">
<TR>
....
</TR>
</TABLE>
<TABLE id="dummy">
</TABLE>
<TABLE class="container" id="right">
<TR>
....
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
By the way, your original example fails to close attribute quoting for
the following, which appears in 4 different places:
<td style="padding:1.5em; >
--
AGw.
Navigation:
[Reply to this message]
|