/    Sign up×
Community /Pin to ProfileBookmark

Stretching the height of a table using %

hey everyone,

i’m trying to have a table automatically adjust it’s height depending on the display settings of any users pc. so

if a user has a display of 1280×1024 for example… as the user would resize their browser, the bottom of the browser would snap to whatever heght it is.

I was able to make this work, no problem, with the width:
<TABLE WIDTH=”100%” HEIGHT=”59″ CELLSPACING=”0″ CELLPADDING=”0″ BORDER=”0″>
<TR HEIGHT=”59″>
<TD WIDTH=”15%” BGCOLOR=”#2E68B2″>&nbsp;</TD>
<TD WIDTH=”85%” HEIGHT=”59″ ALIGN=”RIGHT” VALIGN=”BOTTOM” BGCOLOR=”#2E68B2″>
<FONT FACE=”TAHOMA, VERDANA, ARIAL” SIZE=”1″>
Thursday, September 16, 2004</TD>
</TR>
</TABLE>

Can anyone figure as to how to make the above code work for the height? Or is this not possible??

THANKS MUCH!!!!

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Sep 20.2004 — Not possible, because % will only go as far as the content.
Copy linkTweet thisAlerts:
@PeOfEoSep 21.2004 — with a div you can use % to stretch it height wise... but the browser support seems to be a bit off. Mozilla and ie treat element hights differently... for example, I could not stretch elements using the bottom, top, height:auto; stuff, or min-height because of differences in browser support. I had a cleaver hack for this that I came up with, worked for about a month until mozilla came out with a new version that pooped on my hack.
×

Success!

Help @shpek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...