Stretching a bar 100% vertically
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.
steve40 posted this at 01:26 — 10th July 2006.
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.
Genericnumber1 posted this at 01:32 — 10th July 2006.
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
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.
steve40 posted this at 02:07 — 10th July 2006.
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.
Which, someone correct me if I am wrong. But back in the old Exp. 3.1 days that's how it was done.
Genericnumber1 posted this at 03:43 — 10th July 2006.
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) but you can keep your little hand, I like the scroll bar thanks for all your help
steve40 posted this at 04:23 — 10th July 2006.
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 posted this at 09:01 — 10th July 2006.
He has: 1,733 posts
Joined: Dec 1999
As far as I know a combination of these two above quotes is not possible.
Shakespeare: onclick || !(onclick)
timjpriebe posted this at 14:22 — 10th July 2006.
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;
}
Tim
http://www.tandswebdesign.com
Jack Michaelson posted this at 15:29 — 10th July 2006.
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 .
Shakespeare: onclick || !(onclick)
timjpriebe posted this at 16:22 — 10th July 2006.
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.
Tim
http://www.tandswebdesign.com
Jack Michaelson posted this at 20:31 — 10th July 2006.
He has: 1,733 posts
Joined: Dec 1999
You've got a point there
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.