Click to See Complete Forum and Search --> : Table border to fill entire length of page??


grimmylina
02-27-2008, 09:46 AM
Hello,

Could someone please answer a question for me? I have a site where I'd like the edges of my table to reach to the bottom of the page. I tried doing this to the CSS and it seems to work on some pages but not the others. Like for example:

http://www.hotelshelley.com/reserve.html (works here)

http://www.hotelshelley.com/aboutus.html (not here)


I'd ideally like to accomplish it without having to keep using returns because that creates alot of ugly white space.....and maybe one day I'll use CSS instead of a table but for now it's okay and I don't have the patience.

This is my CSS:

body {
background-image: url(../images/content/bg.jpg);
background-repeat: repeat-x;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFFFFF;
}


Thanks for any help!!!

Allie

turboraketti
02-27-2008, 10:53 AM
You may have to stretch the body element to the full height of the html element.
body { height: 100%; }

ray326
02-27-2008, 11:54 AM
The overall layout shouldn't be a table anyway. Since it has fixed width content the best layout would be based on faux columns (http://alistapart.com/articles/fauxcolumns). One small, repeated background image and, poof, problem solved.

grimmylina
02-27-2008, 12:25 PM
That didn't work well for me....and if someone stretches it then you can see the background color.

ray326
02-27-2008, 11:31 PM
That didn't work well for me....and if someone stretches it then you can see the background color.Then you're doing it wrong. The background image should be so wide (2000px?) that can never happen.

grimmylina
02-28-2008, 09:03 AM
Yeah, I was probably doing it wrong. But I think I kind of solved it. I put the table within a #content:

http://www.hotelshelley.com/index.html

What do you think?

ray326
02-28-2008, 10:11 PM
Looks like you've got layout problems at the bottoms of the pages that wouldn't be there if you did faux columns.

grimmylina
02-29-2008, 05:29 AM
Oh no really, what does it look like? I just couldn't get the gist of how to do the background. It's a little too confusing.

ray326
02-29-2008, 02:47 PM
Maybe you hadn't reworked them all at the time I looked because now they all seem ok.

grimmylina
02-29-2008, 02:48 PM
Yeah, not the greatest design but it will do for now. Thank you!!!