Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / July 2007



Tip: Looking for answers? Try searching our database.

Divs within Divs and backgrounds

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alice - 24 Jul 2007 19:31 GMT
I'm trying to have a background image in a div, then have several divs
within that div that have black backgrounds. The problem I'm finding
is that in Firefox and Safari, the first background image does not
show through on the other divs, it's as if the black background takes
over, and the space around it reverts to the body background, not the
background image of the containing div. Is there a way around this?
Rik - 24 Jul 2007 19:39 GMT
> I'm trying to have a background image in a div, then have several divs
> within that div that have black backgrounds. The problem I'm finding
> is that in Firefox and Safari, the first background image does not
> show through on the other divs, it's as if the black background takes
> over, and the space around it reverts to the body background, not the
> background image of the containing div. Is there a way around this?

Please give an url so we can see what happens.

With the little info you give I guess the div's in the 'main' div are  
floated, which results in the parent div having no height whatsoever in  
compliant browsers, but MSIE tries to enclose those divs with the parent  
div.

This is easily tested for: add an element to the end of the parent div as  
the last child, and give it a style="clear:both;". What happens then? If  
that doesn't show as expected, an url is certainly required.

Signature

Rik Wasmus

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.