Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    footer image not displaying in css.

    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

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It is showing for me (in FF); change the background to black or something and you'll see where it is.

  • #3
    Registered User
    Join Date
    Oct 2006
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    The problem is that your div's empty
    Code:
    <!-- footer div -->
    	<div id="foot"></div>
    and as i see, you haven't specified an image for it
    Code:
    #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
    Last edited by croatiankid; 10-29-2006 at 09:13 PM.

  • #5
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    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; )
    PHP Code:
    $hello file_get_contents('hello.txt'); echo $hello
    hello

  • #6
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,274
    Thanks
    28
    Thanked 271 Times in 265 Posts
    Quote Originally Posted by <?austin ?> View Post
    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?

    Edit: 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.

    Quote Originally Posted by croatiankid View Post
    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
    This 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.

    Quote Originally Posted by rpgfan3233 View Post
    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.
    Last edited by Arbitrator; 10-30-2006 at 01:03 AM. Reason: See the post.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •