Welcome to WebmasterWorld Guest from 184.72.177.182

Forum Moderators: not2easy

Message Too Old, No Replies

Background Image Problem

Backgrounds and DIV tags not mixing...

     
8:52 am on Jun 1, 2005 (gmt 0)

New User

10+ Year Member

joined:June 1, 2005
posts:3
votes: 0


I'm having a bit of a problem.

I have a background image, which goes across three different DIV tags. I've currently got it set up so that these three DIVs sit within one table cell, with the background set on the cell...except that the DIVs are refusing to pick up the background image and, instead, are displaying the page background.

Is this a fundamental problem with DIVs not wanting to pick up the background of the DIV/table cell behind them? Or have I just done something incredibly braindead?

Please help!

Thanks

8:58 am on June 1, 2005 (gmt 0)

New User

10+ Year Member

joined:June 1, 2005
posts:3
votes: 0


Colour me very embarrassed - I've just found my answer... I needed to set a height on the table cell.

I knew I had to be doing SOMETHING stupid.

Sorry!

*goes away looking sheepish*

11:50 am on June 1, 2005 (gmt 0)

New User

10+ Year Member

joined:May 30, 2005
posts:6
votes: 0


If it works for you, I guess that's fine, but a height on a td is invalid HTML.
12:34 pm on June 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 4, 2002
posts:2204
votes: 0


Could you ditch the table placing your divs inside another with the background image/height set in the CSS file. That'll validate.
12:48 pm on June 1, 2005 (gmt 0)

New User

10+ Year Member

joined:June 1, 2005
posts:3
votes: 0


I have done - I went back to the table in an effort to try and get SOMETHING showing. Once I figured out my problem (not setting a height), it worked fine and I could transfer it back to being a DIV within a DIV.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members