Stretching a bar 100% vertically

They have: 3 posts

Joined: Jul 2006

I've been trying to think of way to get a table to stretch to the bottom of the page http://www.dayspringbiblestudy.org/ on that page. I was trying to avoid using javascript to read the height of the window (I'm under the impression many browsers handle those differently) and stretching it equal to that. So to put it all into a question... is there a way to do this? (javascript and php are available tools) I appreciate any help you can give me!

PS. I would like to do this without a scroll down bar showing up, otherwise I would use a height="1000" spacer.gif inside the table cell that is the border.

PSS. Pardon my mess on that site, work in progress of course.

He has: 490 posts

Joined: May 2005

Why do not want scroll bars?. There is no real good way to make a table 100% vertical, at least not one that will pass validation.

They have: 3 posts

Joined: Jul 2006

Well I want it to have a fluid height since all the content is going to be dynamic and I wont know a set height, I tried to clarify that by editing it to change it to say table instead of bar, I should have just right out said it. since the height is going to change I wont be able to just use a set height for anything, that is why the borders are css backgrounds, so that they can change size with the rest of the page. I appreciate the suggestion though Laughing out loud

uhhh edit to respond to your edit:
Alright, well I guess I'll use scrollbars, I was afraid that was inevitable anyways. valid code is the most important anyways.

He has: 490 posts

Joined: May 2005

Since a page expands vertically with content, what would we do without scroll bars?. It would be like those despisable PDF files. We would have to grab out the little claw-hand to move the page. Laughing out loud

Which, someone correct me if I am wrong. But back in the old Exp. 3.1 days that's how it was done.

They have: 3 posts

Joined: Jul 2006

lol I have no idea, but when I said I didnt want scroll bars I meant where you had the ability to scroll down even though there isnt content down at the bottom of the page (like it is currently on the site I have linked above) Laughing out loud but you can keep your little hand, I like the scroll bar Sticking out tongue thanks for all your help

He has: 490 posts

Joined: May 2005

If you use GIF. images for you site borders, which I assume you have. There is not very much way to stop the scroll bar. But if you could drive a big nail in it, it might help. :jump:

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Genericnumber1 wrote: ... a way to get a table to stretch to the bottom of the page

Genericnumber1 wrote: .. to avoid using javascript to read the height of the window...

As far as I know a combination of these two above quotes is not possible.

Shakespeare: onclick || !(onclick)

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Check this site out (I know, the design is terrible. It's getting redesigned):

http://www.missionnicaragua.org/

I have the left border stretching all the way to the bottom without creating extra scrolling. I just used CSS in the body tag. Here's the CSS, with non-related CSS edited out:

body
{
background: url('images/borders_leftback.png') repeat-y top left;
}
'

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

tmjpriebe,
although your solution is 100% correct, it's not actually a solution to Genericnumber1's problem. He asked for a something similar but with the use of a table Smiling.

Shakespeare: onclick || !(onclick)

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Actually, it's doesn't technically answer his question. (It may still solve his problem.) I've found that often people ask questions based on solutions they think will work best for their application. In other words, they started down a path already that's not the best solution.

At least, I find myself doing that from time to time.

Of course, sometimes my suggestion doesn't quite apply to their question, in which case they can feel free to disregard it. Smiling

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

timjpriebe wrote: Actually, it's doesn't technically answer his question. (It may still solve his problem.) I've found that often people ask questions based on solutions they think will work best for their application. In other words, they started down a path already that's not the best solution.

You've got a point there Smiling

Shakespeare: onclick || !(onclick)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.