Damn table background
- Started
- Last post
- 23 Responses
- besler
How do you make a table background color span the height of the page?
- bulletfactory0
would need to see your layout... color the specific td individually.
- ETM0
Are you just looking for just height="100%"? That actually works with tables unlike divs.
- Gordy220
You'll have to make sure you set your body padding / margin to 0 too
- besler0
Looks to be a problem thats WebKit only. WTF. Why the hell am I having to make alterations to WebKit instead of IE?
- besler0
Anyone on why this would only be a WebKit issue?
- besler0
Anyone? This is somewhat of an urgent issue.
- acescence0
maybe if you could show us the page...
- monNom0
you're being pretty vague for such an urgent issue...
- besler0
There's a table column on a page, and it's supposed to stretch all the way down the page. It's a "left navigation bar." There's other content on the rest of the page. It looks fine in every browser except Chrome and Safari. I have the height set to 100%, the background image in that column to repeat. It ends at the last </ul>.
How more specific can I be, other than showing you the site and giving you code?
- acescence0
html, body { height:100% }
- airey0
if it's urgent then post a link and let some fucker here sort it for you. the rest of us do it.
- BonSeff0
html, body, table { stretch: alltheway }
- welded0
I've had weird problems like this before. Load your page as normal, click on the desktop or something just take focus from Safari, then if it's the same issue I've had your background colour will magically fill in. It's weird but I don't really sweat it.
- Then again I wasn't using tables, so who knows. :/welded
- acescence0
in webkit, for 100% height to work the parent element has to have a defined height as well. you have to set html and body to 100% height also, otherwise it will only stretch to the lowest element contained by parent. problem solved, next.
- vaxorcist0
oldschool method:
body marginleft=0 margintop=0 topmargin=0 leftmargin=0
or some 1997 kludge like that....
- NONEIS0
"Don't have a choice in the matter. Trust me, I would...before this, I haven't touched tables in two years."
Unless you are building an HTML email, you really don't have an excuse, tables died about 6 years ago, not 2, so either grow a pair and use the right tech, or figure it out on your own, you will get miles further googling this than you will coming on here and demanding a quick fix with zero source code.