can anyone tell me why this page doesnt show in firefox?

Discussion in 'HTML & Website Design' started by rene7705, Nov 21, 2008.

  1. #1
    rene7705, Nov 21, 2008 IP
  2. tsiger

    tsiger Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    first line of code is this
    <div id='background' style='position:absolute; left:0px; width:100%;height:100%; z-index:-1'><img src='/mytevlar/custImages/fluorescence61250.jpg' style='width:100%; height:100%;'></div>

    what exactly to you want to do? if you just need a background for your page then this is not the way to go...
     
    tsiger, Nov 21, 2008 IP
  3. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i do need a background for that site. how would you do that?
    this is a tried-and-tested method for me..
     
    rene7705, Nov 21, 2008 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    Tried and true or not, it's not a standard coding method and isn't even considered inside the html markup. Why it works for the other browsers I don't know but it's another proof that validation is necessary for all web pages (as an aside).

    Remove that line and, for your body, you can do
    body{
    background-image:url(mytevlar/custImages/fluorescence61250.jpg);
    }
     
    drhowarddrfine, Nov 21, 2008 IP
  5. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    tried that, it never scales correctly, and if the page length is larger than the viewport you get all sorts of distortions..

    fact is, in all other browsers this page loads and displays just fine..

    edit: i've just seen that i put the bloody background div before the opening <html>....
    hehe, i'm new to the smarty engine.. my intention is to put it just after <body> ofcourse.. i'll go fix it now..
     
    rene7705, Nov 21, 2008 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    Another potential issue is that this line, being in front of the doctype, throws IE into quirks mode and it won't attempt to perform like modern browsers. When you remove that line, we'll see what it does.
     
    drhowarddrfine, Nov 21, 2008 IP
  7. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #7
    Hang on till I get on my dev computer.
     
    drhowarddrfine, Nov 21, 2008 IP
  8. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #8
    Well, my debugging tools won't even work with your site because of that line. You'll have to remove it or I can't help.
     
    drhowarddrfine, Nov 21, 2008 IP
  9. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    they're moved to after <body> now..
     
    rene7705, Nov 21, 2008 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    Remove position:absolute from the css for that image but, first, let me know if this still works in IE as it is right now.
     
    drhowarddrfine, Nov 21, 2008 IP
  11. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    
    <body>
    <div id='background' style='left:0px; width:100%;height:100%; z-index:-1'><img src='/mytevlar/custImages/fluorescence61250.jpg' style='width:100%; height:100%;'></div>
    <div id='scroller' style='position:absolute; left:0px; top:0px; overflow:auto; width:100%;height:100%;'>
    ............script content..........
    </div>
    </body>
    
    Code (markup):
    and now it works in all browsers <g>

    thx for the support & attention ppl..
     
    rene7705, Nov 21, 2008 IP
  12. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #12
    The site has no problem in showing in FF2 . Pls check again .
     
    justinlorder, Nov 21, 2008 IP