You are here: Re: 2-column-layout with <table> « HTML « IT news, forums, messages
Re: 2-column-layout with <table>

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация