...

View Full Version : footer image not displaying in css.



<?austin ?>
10-29-2006, 09:45 PM
ok for some reason beyond me, my footer image will not display! i am using the correct css and my page validates but it wont display even when i remove everthing else. yeah, so maybe someone can show me the errors of my ways.

the page im having trouble with is:
http://flashanims.com/flashanims.php

the div is the last thing in the css, #foot

mark87
10-29-2006, 09:54 PM
It is showing for me (in FF); change the background to black or something and you'll see where it is.

<?austin ?>
10-29-2006, 10:00 PM
hmmm, im using ff to...but im using firefox 2 though maybe it's that. no what i mean is that there is supposed to be an image that is sposed to display.

croatiankid
10-29-2006, 10:09 PM
The problem is that your div's empty

<!-- footer div -->
<div id="foot"></div>
and as i see, you haven't specified an image for it

#foot {
height:50px;
background:#7B9ABB;
}

If you don't put content in a div, it should not display at all. Empty DIVs display in IE6 due to one of its many bugs, the "fix" (if you could call it) would be to put a comment in the empty DIV. The way it renders with the comment is how it should render

rpgfan3233
10-29-2006, 10:17 PM
Technically, a comment shouldn't be considered content, should it? Whatever the case, I tend to use a nonbreaking space ( &nbsp; OR &#38;#160; OR &#xA0; )

Arbitrator
10-30-2006, 01:58 AM
ok for some reason beyond me, my footer image will not display!Your #foot element contains no content and, as croatiankid mentioned, doesn’t have any images specified to display via CSS either. I also see no scripts in the source code, so I assume that no content is dynamically inserted via JavaScript either. How is it “beyond [you]” that if you set nothing to display, that nothing is displayed?

Okay, I now see three scripts for Google ads. I white-listed the page (they were blocked by Adblock) and still nothing though. I doubt that those were set to display content within the #foot element anyway.

If you don't put content in a div, it should not display at all. Empty DIVs display in IE6 due to one of its many bugs, the "fix" (if you could call it) would be to put a comment in the empty DIV. The way it renders with the comment is how it should renderThis is incorrect. An empty div element will still display if it is assigned dimensions as it has been here; the width is auto and the height has been specified to be 50 pixels. The display of empty div elements is not an Internet Explorer bug nor a bug at all; if you assign that element a different background color, it’ll be obvious that it’s displaying in Firefox.


Technically, a comment shouldn't be considered content, should it? Whatever the case, I tend to use a nonbreaking space ( &nbsp; OR OR &#xA0; )Right, a comment is not content. Inserting a comment or random characters into the div shouldn’t be necessary.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum