How do I control heights of cells next to a ROWSPANned cell?

L

Lot-o-fun

Suppose I make a table that looks like

---------
| A | |
|---| |
| B | D |
|---| |
| C | |
---------

What I'd like to do is to have cells A and B only be as high as they
need to be based on their contents, and cell C to take up the remainder
of the vertical space. Can someone tell me how to do this?

Please reply by e-mail as well as posting, if possible.

TIA,
-Lotofun
 
N

Nik Coughin

Lot-o-fun said:
Suppose I make a table that looks like

---------
---------

What I'd like to do is to have cells A and B only be as high as they
need to be based on their contents, and cell C to take up the
remainder of the vertical space. Can someone tell me how to do this?

Please reply by e-mail as well as posting, if possible.

TIA,
-Lotofun

Make the height of the third cell 100%. Won't take up 100% of the browser
window, will take up 100% of the available space.
 
W

Weyoun the gowd damn Dominion Vorta who certainly

Lot-o-fun said:
Suppose I make a table that looks like

---------
| A | |
|---| |
| B | D |
|---| |
| C | |
---------

What I'd like to do is to have cells A and B only be as high as they
need to be based on their contents, and cell C to take up the remainder
of the vertical space. Can someone tell me how to do this?

Please reply by e-mail as well as posting, if possible.

TIA,
-Lotofun

<html>
<body>
<table width="100%" height="100%" border="1">
<tr>
<td width="20%" height="100">A</td>
<td width="*" height="100%" rowspan="3">D</td>
</tr>

<tr>
<td width="20%" height="100">B</td>
</tr>

<tr>
<td width="20%" height="*">C</td>

</tr>
</table>
</body>
</html>


change as needed
 
S

Steve Pugh

Weyoun the gowd damn Dominion Vorta who certainly didn't dance
<table width="100%" height="100%" border="1">

Height is not a valid attribute of table.
<td width="*" height="100%" rowspan="3">D</td>

* is not a valid value for width in this context. Only when used on
the col and colgroup elements may * be used in the width attribute.
<td width="20%" height="*">C</td>

* is not a valid value for height.

Steve
 
W

Weyoun the gowd damn Dominion Vorta who certainly

Steve said:
Weyoun the gowd damn Dominion Vorta who certainly didn't dance



Height is not a valid attribute of table.




* is not a valid value for width in this context. Only when used on
the col and colgroup elements may * be used in the width attribute.




* is not a valid value for height.

?

It works in IE6 and FireFox? Is it not valid? If not, what's the proper
coding to do a wildcard-type value? I wonder....

<tries something>


<html>
<body>
<table width="100%" height="100%" border="1">
<tr>
<td width="20%" height="100">A</td>
<td height="100%" rowspan="3">D</td>
</tr>

<tr>
<td width="20%" height="100">B</td>
</tr>

<tr>
<td width="20%">C</td>
</tr>
</table>
</body>
</html>

Ah ha!
Of course, the default is "*" anyway (or at least "undefined") so the
browser calculates it automatically.
 
W

Weyoun the gowd damn Dominion Vorta who certainly

Steve said:
Height is not a valid attribute of table.

well... then how do you define the table's height? (without CSS?)

You're right though, I just rechecked the specs and it's not listed and
my pocket guide HTML book has "height" listed as "nonstandard".
 
R

Rijk van Geijtenbeek

well... then how do you define the table's height? (without CSS?)

You don't :)

Browsers are expected by authors to perform some magic to make things look
like they want, without any specification about how nested tables, widths
that don't add up 100% and the relation with the viewport are to be
handled.

CSS does have such rules on how (percentage) heigths are supposed to work,
but browsers should forget most of them when handling tables...

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
 
S

Steve Wright

NNTP-Posting-Host: 81-86-179-244.dsl.pipex.com

What's Pipex's ADSL like? :)

Is the 1MB connection worth the cost or in practice do you only get
a marginally faster through rate than the 512Mb version?
 
W

Weyoun the gowd damn Dominion Vorta who certainly

Steve said:
NNTP-Posting-Host: 81-86-179-244.dsl.pipex.com

What's Pipex's ADSL like? :)

Is the 1MB connection worth the cost or in practice do you only get a
marginally faster through rate than the 512Mb version?

I have a friend on Pipex ADSL 512. We were discussing this a couple of
days ago actually, here's the mIRC transcript:

[:22:01:55] <Wey|avp> bT have announced the first UK 512knps broadband
system thing for under £20
[:22:02:03] <Wey|avp> £19.99 a month
[:22:02:05] <Wey|avp> sound good?
[:22:02:06] <Wey|avp> lol
[:22:02:15] <Wey|avp> it has a 1 gigabyte PER MONTH download limit

[:22:03:35] <Shao1in> that would be **** all use for me as i get 4-5 GB
a day
[:22:03:43] <Vissy> really
[:22:03:47] <Vissy> I never had a limit with vibe
[:22:03:48] <Shao1in> 24/03/2004 5,013,353 KB 773,211 KB 5,786,564 KB
86,401 sec
[:22:03:49] <Shao1in> 25/03/2004 4,467,006 KB 831,740 KB 5,298,746 KB
86,399 sec
[:22:03:49] <Shao1in> 26/03/2004 4,315,042 KB 1,137,615 KB 5,452,658 KB
86,400 sec
[:22:03:49] <Shao1in> 27/03/2004 4,079,775 KB 1,024,211 KB 5,103,985 KB
86,399 sec
[:22:04:27] * Wey|avp has (in theory) a 1gb a day cap on his, but I
regularly do what shaolin does

[:22:04:33] <Wey|avp> ie 5gb+ a day
[:22:04:36] <Wey|avp> and no complaints so far
[:22:05:19] <SmallBlackDog> apparently i dont have a cap on my bandwidth
usage
[:22:05:28] <Wey|avp> who you with?
[:22:05:36] <Shao1in> i dont ahve any caps
[:22:05:41] <Shao1in> but then pipex pwn
[:22:05:52] <Wey|avp> but your connection is onyl 512, right?
[:22:06:02] <Wey|avp> "only" :)
[:22:06:03] <Shao1in> with 256 up, cable boi

[:22:06:58] <Wey|avp> you are 512 download, 256 upload,,,,, im 1mb
download, 256 upload
[:22:07:03] <Wey|avp> i have a 1gb cap, in theory, you dont
[:22:07:06] <Shao1in> you have 256 up as you have 1 mb down. if yo were
on 512, you would be 126 up
[:22:07:10] <Wey|avp> but ntl cant fund the people to check it
[:22:07:19] <Wey|avp> oh I see
[:22:07:21] <Wey|avp> yes
[:22:07:25] <Wey|avp> you are correct, sorry :)
[:22:07:34] <Shao1in> it happens
[:22:07:38] <Shao1in> ;-)
[:22:07:44] <Wey|avp> heh
 
S

Steve Pugh

Steve Wright said:
NNTP-Posting-Host: 81-86-179-244.dsl.pipex.com

What's Pipex's ADSL like? :)

Is the 1MB connection worth the cost or in practice do you only get
a marginally faster through rate than the 512Mb version?

I was going to reply via e-mail as this is clearly off topic but then
I noticed your obviously false e-mail address. Oh well, guess you
didn't really want an answer.

cheers,
Steve
 
K

Keeper

I hate working in percent.. i like pixels better.. but percent has its
advantages

Later,
Keeper
"Weyoun the gowd damn Dominion Vorta who certainly didn't dance"
 
K

Keeper

lol ..

IE has always auto maticly done that.. but watch.. netscape might look
retarded.

BTW: not defining a cell size defaults to 10px

However!!!!!\

<Table width="40" Height="40" border="1" cellpadding="1" cellspacing="1"
bordercolordark="#006699" bordercolorlight="#009999">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>

That code will auto set each cell to 20px X 20px.. coding with undefinded
height and width.. can cause probs.. i recomend adjusting each TR height..
for content in pixels or percent.. i use pixels.. but whitch ever you are
comfortable with.

Later,
Keeper





"Weyoun the gowd damn Dominion Vorta who certainly didn't dance"
 
O

Owen Jacobson

lol ..

IE has always auto maticly done that.. but watch.. netscape might look
retarded.

BTW: not defining a cell size defaults to 10px

Stop posting.

Please, for the love of all that's right and good, stop posting.

You have nothing useful to add, but some people who don't know better may
think your "easy solutions" and comments like the above constitute useful
advice. You don't want to read specifications, you refuse to use tools
designed for the very job people are asking about, and you seem to be
incapable of following simple usenet conventions that, whether or not
they're still followed elsewhere, are still followed here.

For justice's sake, stop $#*^ing posting.
 
K

Karl Groves

Keeper said:
lol ..

IE has always auto maticly done that.. but watch.. netscape might look
retarded.

Please do not give any more advice until you learn what the **** you're
talking about.
The snippet below is the most disgusting example of know-nothingness I've
seen on this newsgroup in months.

-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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top