Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Stretching a table vertically
Old 02-18-2007, 02:03 AM Stretching a table vertically
Junior Talker

Posts: 3
Name: Ayman
Trades: 0
Hi guys. This is my first post, so be nice to me . Looks like a pretty active forum..

I know that when I specify a width of 100% for a table, it stretches horizontally to the extends of the browser . And as you resize the browser, the table resizes as well.

Why am I not getting this effect when specifyign a height of 100% ?? The table does not stretch vertically ! It's driving me nuts. Any explanation? + do you know a way to make the table (in case it's small) to stretch vertically to the end of the browser???

Ayman
Ayman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-18-2007, 02:54 AM Re: Stretching a table vertically
RanaD's Avatar
Super Talker

Posts: 139
Name: David
Trades: 0
Ayman,

We're not all that mean!

I remember a couple of years ago I wanted to do something similar to that, but in the end gave up and used something different. I have no idea why it doesn't work with 100%, but it does work if you say eg.
Code:
<table width="100%" height="500px">
If you're using the table for layout, have a look in the CSS subforum about table-less layouts.
RanaD is offline
Reply With Quote
View Public Profile
 
Old 02-18-2007, 03:19 AM Re: Stretching a table vertically
Junior Talker

Posts: 3
Name: Ayman
Trades: 0
I see, but setting it to 500px will cause it to be 500 px high ...

When I resize the browser (vertically) the footer will just disappear (it's at a fixed location). Get what I mean?
Ayman is offline
Reply With Quote
View Public Profile
 
Old 02-18-2007, 11:32 AM Re: Stretching a table vertically
RanaD's Avatar
Super Talker

Posts: 139
Name: David
Trades: 0
500px is an example value I don't have a clue what your page looks like or where the table is, so you must play with the px's. I sucked 500 out of my thumb Could have used 2 000 000 px too...
RanaD is offline
Reply With Quote
View Public Profile
 
Old 02-19-2007, 04:10 AM Re: Stretching a table vertically
Novice Talker

Posts: 13
Name: Bjorn Enki
Location: Los Angeles, CA
Trades: 0
What is it exactly you are trying to do ? Stretching a table's height seems rather unusual.
__________________
Bjorn Enki Gjesdal -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
bjornenki is offline
Reply With Quote
View Public Profile Visit bjornenki's homepage!
 
Old 02-21-2007, 01:31 AM Re: Stretching a table vertically
Junior Talker

Posts: 3
Name: Ayman
Trades: 0
I want my footer to appear at the bottom of the page actually. Thats all
Ayman is offline
Reply With Quote
View Public Profile
 
Old 02-21-2007, 06:59 AM Re: Stretching a table vertically
bbutton's Avatar
Experienced Talker

Posts: 43
Name: Bill Button
Location: Reading,UK
Trades: 0
Hi,

I tried what you are trying and it worked fine in IE7 and also firefox. the code i tried was

<table height=100% width=100% border=1>
<td>
</td>
</table>

If you are still having problems you should look at div's and using css.
__________________
Bill Button

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
bbutton is offline
Reply With Quote
View Public Profile Visit bbutton's homepage!
 
Old 02-21-2007, 08:05 AM Re: Stretching a table vertically
houdini987's Avatar
Extreme Talker

Posts: 155
Name: Brian Trudeau
Location: Enfield, CT
Trades: 2
Yeah I'd say to hard code the table height in pixels. If you're looking for something to always appear at the bottom of a user's screen (i.e. your page height will always be small enough that you won't have to scroll), then you might be looking at a javascript to read in the user's screen dimensions.

But I wouldn't overcomplicate things - the vast majority of web users (if I can speak for the vast majority?) always assume they'll have to scroll to get to the bottom.
__________________
Trudeau Consulting LLC

Please login or register to view this content. Registration is FREE
houdini987 is offline
Reply With Quote
View Public Profile Visit houdini987's homepage!
 
Reply     « Reply to Stretching a table vertically
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29029 seconds with 12 queries