Reply to Re: Table problem

Your name:

Reply:


Posted by Barbara de Zoete on 01/03/06 20:46

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.

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; }


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'

[Back to original 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

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