table height
Hi. I'm working on a new template. For the first time ever I'm validating the code every step But I ran into one small problem. I want to "force open" the main content area so that it pushes down the last table row, so that the last row will always stay along the bottom of the browser no matter how short the page. Hopefully that made sense. Basically I want a variable height blank space filling up room either in the space below my main content or above the line "created by". How can I do this? Suggestion?
Thanks.
Busy posted this at 04:43 — 30th April 2003.
He has: 6,151 posts
Joined: May 2001
there is no 'proper' way to do it with HTML (can be cheated thou) so your real option would be with CSS.
make the bottom bit a div and set it to the bottom, not sure if it would be universal thou.
Other option is add an image beside the text which will give you more length, an image on the topic
andy206uk posted this at 08:18 — 30th April 2003.
He has: 1,758 posts
Joined: Jul 2002
Hi... Since the W3's html validator doesnt like height attributes on table tags, i'd reccomend that you use a 1x1 transparent gif expanded to the requrired height to push the cell vertically.
(just remember to put alt tags on it... the validator doesnt like it if you dont!)
Andy
fifeclub posted this at 14:01 — 30th April 2003.
He has: 688 posts
Joined: Feb 2001
Would graphics work? I need it to be flexable like a percentage. Most pages will be full of content and I wouldn't want the extra space, but then there are a few pages (like my test page I linked) that don't quite go all the way to the bottom (800x600)where I would want the blank space to "push" the last row down.
andy206uk posted this at 15:23 — 30th April 2003.
He has: 1,758 posts
Joined: Jul 2002
i know IE doesnt mind you using 100% for image heights and width but i'm not sure how the html validator will react to it...
Suzanne posted this at 17:15 — 30th April 2003.
She has: 5,507 posts
Joined: Feb 2000
Okay, cut it out. You have no idea what resolution people will be looking at this site, what size their window will be, what instrument they are using to display the site. Quit thinking just in display terms!
Leave it. It's fine. It doesn't hurt anything to have short pages. If you're really really concerned about the page looking odd for very short pages, increase the content (better for everyone, including search engines) and eliminate the problem, or add a nice background image (small, repeating) that will show up only when the page doesn't scroll.
fifeclub posted this at 18:14 — 30th April 2003.
He has: 688 posts
Joined: Feb 2001
Got ya all riled up, huh?
I'm gonna try the variable height grahpic (if it will validate) but if that doesn't work I'm just gonna leave it be. It bugs me, but not enough to lose any sleep over.
Suzanne posted this at 20:13 — 30th April 2003.
She has: 5,507 posts
Joined: Feb 2000
heh... did you smell the smoke?
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.