html_table

M

manios76

Hallo,

I have an html table which contains nested tables in its cells.
My problem is that the height of each row of the outer table i
determined by the height of the cell that contains the biggest neste
table.As a result some cells of this row contain nested tables whos
size is smaller than the cell they are contained in. Is there a way t
make all nested tables fit exactly the space available in the cell the
are contained?

Regards
Manousos, Athen
-
manios7
 
K

Kris

manios76 said:
I have an html table which contains nested tables in its cells.
My problem is that the height of each row of the outer table is
determined by the height of the cell that contains the biggest nested
table.As a result some cells of this row contain nested tables whose
size is smaller than the cell they are contained in. Is there a way to
make all nested tables fit exactly the space available in the cell they
are contained?

<table height="100%"> which 'works' in some browsers.

Liberate yourself from hacks and cludges like tables for layout. There
is a way it is supposed to be done, it is called Cascading Style Sheets,
CSS. It is here to stay, it is not complicated at all and the time is
right to use it.
 
A

Amos E Wolfe

manios76 said:
Hallo,

I have an html table which contains nested tables in its cells.
My problem is that the height of each row of the outer table is
determined by the height of the cell that contains the biggest nested
table.As a result some cells of this row contain nested tables whose
size is smaller than the cell they are contained in. Is there a way to
make all nested tables fit exactly the space available in the cell they
are contained?

Regards
Manousos, Athens


Style Sheets (CSS0 is the way forward, but if you haven't the time to learn
simply create a 1x1 transparent .gif and include it in one cell per row,
specifying the height in the img tag. It's quick and dirty but it works.
Even the so-called "professional" sites use this method - I didn't invent
it, nor did Microsoft, Ask Jeeves or the BBC, i suspect.

-=# Amos E Wolfe #=-
 
E

Eric B. Bednarz


For normal tag salad it works consistent enough.

Some notes:

* DTD is the initialism for (document type) *definition*--in the formal
syntactical sense the *sum* of external and internal subsets in the $1
declaration that governs the upcoming instance set, not some magic
prefixed keyword (and|or) string
* docHype bitching has nothing to do with doctype declarations either;
the software concept of breaking a real standard to invoke so-called
standards compliance with one or the other W3C spec of the week has
the overall credibility of a politician who publically asks for a
bribe for the purpose of ensuring his integrity


Quirks mode is A Good Thing
 
K

Kris

<table height="100%"> which 'works' in some browsers.

Not really
http://www.karlcore.com/articles/article.php?id=21[/QUOTE]

==
Here we see a 100% (height and width) table -
100% table with no DTD

Notice that this "works". Unfortunately, it only works because there is
no DTD. As such, it throws the browser into "Quirks mode" - basically
revving up the browser's compensatory features so that a broken website
will still display rather than break*. Last I checked, it worked in all
browsers.
==

So it does work. Don't try to convince me of doing things the right way,
try the OP instead. I assumed someone who thinks nesting tables for
layout is the best thing to do does not care a single bit for code
quality at all, leave alone valid methods.
 
K

Karl Groves

So it does work. Don't try to convince me of doing things the right way,
try the OP instead. I assumed someone who thinks nesting tables for
layout is the best thing to do does not care a single bit for code
quality at all, leave alone valid methods.

hahaha good point

-karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top