Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF, 078274121, info0a ip, should prodicers of software_based services be held liable or not liable for economic injuries

Links

XODOX
Impressum

#1: Vertical alignment problem (nested table cells)

Posted on 2008-04-10 20:16:34 by 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

Report this message

#2: Re: Vertical alignment problem (nested table cells)

Posted on 2008-04-10 20:23:23 by 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

Report this message

#3: Re: Vertical alignment problem (nested table cells)

Posted on 2008-04-10 20:37:07 by Sid Ismail

On Thu, 10 Apr 2008 20:16:34 +0200, Ole Streicher
<ole-usenet-spam@gmx.net> 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

Report this message

#4: Re: Vertical alignment problem (nested table cells)

Posted on 2008-04-10 20:46:14 by Ole Streicher

"Jonathan N. Little" <lws4art@central.net> 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:

<!---------------------------------------------------------------->
<html><body>
<table><tr>
<td>
<table>
<tr><td>exp(x)<hr></td></tr>
<tr><td>exp(y)</td></tr>
</table>
</td>
<td>when</td>
<td>
<table>
<tr><td>x exists</td></tr>
<tr><td>and x * y =3</td></tr>
</table>
</td>
</tr></table>
</body></html>
<!---------------------------------------------------------------->

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

Report this message

#5: Re: Vertical alignment problem (nested table cells)

Posted on 2008-04-11 12:58:30 by Sid Ismail

On Thu, 10 Apr 2008 20:46:14 +0200, Ole Streicher
<ole-usenet-spam@gmx.net> wrote:

: "Jonathan N. Little" <lws4art@central.net> 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:
:
: <!---------------------------------------------------------------->
: <html><body>
: <table><tr>
: <td>
: <table>
: <tr><td>exp(x)<hr></td></tr>
: <tr><td>exp(y)</td></tr>
: </table>
: </td>
: <td>when</td>
: <td>
: <table>
: <tr><td>x exists</td></tr>
: <tr><td>and x * y =3</td></tr>
: </table>
: </td>
: </tr></table>
: </body></html>


No need to have nested table.

Try this:
<table cellpadding=10>
<tr>
<td>exp(x)<br><hr>exp(y)</td>
<td>when</td>
<td>x exists and x * y =3</td>
</tr>
</table>

Sid

Report this message

#6: Re: Vertical alignment problem (nested table cells)

Posted on 2008-04-11 14:41:18 by Ole Streicher

Sid <elsid@nospam.com> 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:
> <table cellpadding=10>
> <tr>
> <td>exp(x)<br><hr>exp(y)</td>
> <td>when</td>
> <td>x exists and x * y =3</td>
> </tr>
> </table>

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)

Report this message