Image Shows In FF but Not IE ????

Discussion in 'CSS' started by TheMachine, Oct 19, 2007.

  1. #1
    hey guys...

    helping a buddy design a site in CSS, looks ok in Firefox but for some reason the logo image doesn't even display in IE :(

    any idea why this would be ? ?

    #logo {
    float: left;
    padding-top: 80px;
    background: url(images/eglobal.jpg);
    }
    #logo h1, #logo h2 {
    margin: 0;
    padding-left: 200px;
    font-weight: normal;
    color: #E06529;


    site is :

    e-globalmedia.com


    THX :cool:
     
    TheMachine, Oct 19, 2007 IP
  2. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #2
    Should be

    background: url('images/eglobal.jpg')
    }
     
    sundaybrew, Oct 19, 2007 IP
  3. TheMachine

    TheMachine Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thx but didn't seem to solve the problem...still not showing in IE, any other suggestions?
     
    TheMachine, Oct 19, 2007 IP
  4. xmcp123

    xmcp123 Peon

    Messages:
    876
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #4
    xmcp123, Oct 19, 2007 IP
  5. TheMachine

    TheMachine Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    from what i can see yes its getting called....damn this is f*cked up, been breaking my head over this all day...such a waste of time for such a small bit of code
     
    TheMachine, Oct 19, 2007 IP
  6. TheMachine

    TheMachine Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok i think it has something to do with the float cuz i commented it out and the image shows in IE but shows 4x accross the screen...is the float correct in this?


    #logo {
    float: left;
    padding-top: 80px;
    background: url(images/eglobal.jpg);
     
    TheMachine, Oct 19, 2007 IP
  7. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #7
    You aren't declaring a height, IE has a quirk where no height = no content, even though padding SHOULD be counted as height. Change that padding:80px to height:80px and see if that does the trick.

    You are also probably seeing the minimum height bug, but it's hard to say with all that unused/wasted HTML and CSS in there.

    We're talking at least one level of wasted DIV container per item, those empty H1 and H2 tags are accomplishing a whole lot (when the image itself should probably be a image replacement ON the h1), etc, etc. I'd probably strip a third to half the HTML out of there given the simplicity of the layout.
     
    deathshadow, Oct 20, 2007 IP
  8. xmcp123

    xmcp123 Peon

    Messages:
    876
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Wow. I have a new appreciation for all those that complain about standards compliance now.
     
    xmcp123, Oct 20, 2007 IP
  9. TheMachine

    TheMachine Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    changing to height did not make it work but thx for your input...I just inserted the image in the H1 tag works fine now

     
    TheMachine, Oct 20, 2007 IP
  10. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #10
    And background: url('images/eglobal.jpg') isn't right either. I think it works, but according to specs the quotes are not needed.
     
    Stomme poes, Oct 22, 2007 IP
  11. xmcp123

    xmcp123 Peon

    Messages:
    876
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Reminder: it validated properly with W3's "holy crap I'm anal" validator.
     
    xmcp123, Oct 22, 2007 IP