|
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]
|