You are here: Re: Table problem « HTML « IT news, forums, messages
Re: Table problem

Posted by Lόpher Cypher on 01/03/06 21:06

Barbara de Zoete wrote:
> On Tue, 03 Jan 2006 19:24:58 +0100, LΓΌpher Cypher
> <lupher.cypher@verizon.net> wrote:
>
>> Barbara de Zoete wrote:
>>> On Tue, 03 Jan 2006 18:35:29 +0100, LΓΌpher Cypher
>>> <lupher.cypher@verizon.net> wrote:
>>>
>>>> Barbara de Zoete wrote:
>>>>
>>>>> How is it that data that is supposed to go into one table cell, can
>>>>> all of a sudden be put into two cells without breaking the logic of
>>>>> the table somehow?
>
>>> Where 'desc3' relates logically to both cells containing 'data data',
>>> how do you keep this logical connection with the actual _data_ [1]?
>>> Just putting in another datatable doesn't make sense to me, if
>>> earlier the data was supposed to go in to just one data cell.
>
>> Using span's or div's is essentially doing the same thing - you are
>> trying to "split" one cell into two (you are basically replacing td's
>> with span's/div's).
>
> Only in looks, appearance, not logically.
>
>> .-------.-----------.-----------------------------------------------.
>> | desc2 | desc3 | etc |
>> |=======|====================================================|======|
>> | data | <table><tr><td>data</td><td>data</td></tr></table> | data |
>> `-------'----------------------------------------------------'------'
>>
>> vs.
>>
>> .-------.-----------.-----------------------------------------------.
>> | desc2 | desc3 | etc |
>> |=======|====================================================|======|
>> | data | <span>data</span><span>data</span> | data |
>> `-------'----------------------------------------------------'------'
>>
>
>
> No, they are essentially different. Really. In the second table the data
> in the spans are logically still in one data cell. In the first example
> the data is split up, logically, and put into two seperate data cells.

Well, would it really make difference? You simply use the first table
for logic separation of data and the second for layout of data :)

>
> But you gave me another idea, though I would do things differently.
> Maybe helpful for OP though:
>
> <table>
> <tr>
> <td><span id="left">left</span><span id="right">right</span></td>
> </tr>
> </table>
>
> table {
> width:100%; }
>
> td span {
> display: table-cell;
> vertical-align: top; /*or where you need it to align*/
> width:50%; }
>
> span.left {
> text-align: left;
> padding-right:4em; } /*or half of any other margin you
> want to appear between the two*/
>
> span.right {
> text-align:right;
> padding-left:4em; }
>

Hmm.. This does not seem to work. At least in Firefox 1.5 :)


--

- lΓΌpher
---------------------------------------------
"Man sieht nur das, was man weiß" (Goethe)

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация