homepage Welcome to WebmasterWorld Guest from 54.237.38.30
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
Forum Library, Charter, Moderators: not2easy

Site Graphics and Multimedia Design Forum

    
Background Image Problem
Backgrounds and DIV tags not mixing...
athersgeo

5+ Year Member



 
Msg#: 2003 posted 8:52 am on Jun 1, 2005 (gmt 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

 

athersgeo

5+ Year Member



 
Msg#: 2003 posted 8:58 am on Jun 1, 2005 (gmt 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*

RoyReed

5+ Year Member



 
Msg#: 2003 posted 11:50 am on Jun 1, 2005 (gmt 0)

If it works for you, I guess that's fine, but a height on a td is invalid HTML.

limbo

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 2003 posted 12:34 pm on Jun 1, 2005 (gmt 0)

Could you ditch the table placing your divs inside another with the background image/height set in the CSS file. That'll validate.

athersgeo

5+ Year Member



 
Msg#: 2003 posted 12:48 pm on Jun 1, 2005 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved