Vertical alignment problem (nested table cells)

Vertical alignment problem (nested table cells)

am 10.04.2008 20:16:34 von Ole Streicher

Hi group,

how can I use different alignments in the same table row?

I have two multi-row tables and one one-liner that I want to align as follows:

Centered
Centered One-Row OnTop
Centered OnTop
OnTop

The left cell should be centered around the middle cell, while the right one
should be centered on top of the middle cell.

How can I get this? The usual "vertical-align" attributes (or css) did
not help.

Best regards

Ole

Re: Vertical alignment problem (nested table cells)

am 10.04.2008 20:23:23 von lws4art

Ole Streicher wrote:
> Hi group,
>
> how can I use different alignments in the same table row?
>
> I have two multi-row tables and one one-liner that I want to align as follows:
>
> Centered
> Centered One-Row OnTop
> Centered OnTop
> OnTop
>
> The left cell should be centered around the middle cell, while the right one
> should be centered on top of the middle cell.
>
> How can I get this? The usual "vertical-align" attributes (or css) did
> not help.

URL, let's see what you tried...maybe you are approaching the problem
the wrong way.


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: Vertical alignment problem (nested table cells)

am 10.04.2008 20:37:07 von Sid Ismail

On Thu, 10 Apr 2008 20:16:34 +0200, Ole Streicher
wrote:

: Hi group,
:
: how can I use different alignments in the same table row?
:
: I have two multi-row tables and one one-liner that I want to align as follows:
:
: Centered
: Centered One-Row OnTop
: Centered OnTop
: OnTop
:
: The left cell should be centered around the middle cell, while the right one
: should be centered on top of the middle cell.
:
: How can I get this? The usual "vertical-align" attributes (or css) did
: not help.


This is a job for ROWSPAN and vertical align. URL?

Sid

Re: Vertical alignment problem (nested table cells)

am 10.04.2008 20:46:14 von Ole Streicher

"Jonathan N. Little" writes:
> URL, let's see what you tried...maybe you are approaching the problem
> the wrong way.

Unfortunately, I have no public server. Here is what I use:











exp(x)
exp(y)

when



x exists
and x * y =3





This also shows what I want: a view of some math-like formulas (the
code above is part of a greater switch statement). The problem here is
that (in that example) the rightmost column may be quite long so I
have to break it into multiple rows. In that case, it ist difficult to
read (especially, if there are 3 rows or even more).

I played around with the "valign" attributes as well as with the
according css style option, but without success.

Since the code is part of an automatically generated html page (from a
mathml like xml source), I cannot manually optimize every formula but
need some automatism.

Any ideas?

Regards

Ole

Re: Vertical alignment problem (nested table cells)

am 11.04.2008 12:58:30 von Sid Ismail

On Thu, 10 Apr 2008 20:46:14 +0200, Ole Streicher
wrote:

: "Jonathan N. Little" writes:
: > URL, let's see what you tried...maybe you are approaching the problem
: > the wrong way.
:
: Unfortunately, I have no public server. Here is what I use:
:
:
:
:


:
:
:
:

:
:
:
:
exp(x)
exp(y)

:
when
:
:
:
:
x exists
and x * y =3

:

:


No need to have nested table.

Try this:






exp(x)

exp(y)
when x exists and x * y =3


Sid

Re: Vertical alignment problem (nested table cells)

am 11.04.2008 14:41:18 von Ole Streicher

Sid writes:
> No need to have nested table.

Since every operand in the formula may be another multi-line
operation, I need to put them there.

> Try this:
>


>
>
>
>
>
>
exp(x)

exp(y)
whenx exists and x * y =3


This works only if the third expression is short enough (what was only
the case in the example to save space in the posting). Usually, they are
quite long.

Regards,

Ole

--
If you think technology can solve your problems you don't understand
technology and you don't understand your problems. (Bruce Schneier)