Website Displaying Properly In Firefox, Not In IExplore

Discussion in 'HTML & Website Design' started by JohnS0N, Mar 19, 2008.

  1. #1
    What could be wrong? If there is not a default solution, would someone care to jump in and look at it?

    Thanks.
     
    JohnS0N, Mar 19, 2008 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    erm whats the url of the website??
    and what is it thats actually wrong
     
    wd_2k6, Mar 19, 2008 IP
  3. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #3
    It seems like it doesn't want to pick up the style.css. I had a look around but couldn't find what was triggering this.

    Please see this link, to see what I'm talking about:

    If you find the solution, do tell what part of code you edited, because I have a few other websites to edit!

    Thanks so much.
     
    JohnS0N, Mar 19, 2008 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    kk5st, Mar 19, 2008 IP
  5. SibTiger33

    SibTiger33 Peon

    Messages:
    203
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you say the sites not displaying correctly

    do you have a live link to the site

    what are you expecting it to do? what isnt it doing in IE?
     
    SibTiger33, Mar 19, 2008 IP
  6. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #6
    Hm...you don't see it? Which version of IE do you have? My version is 6.0.2900.2180.xpsp_sp2_rtm.040803-2158. Apparently it doesn't work in IE6. Here is a screenshot on how it looks like:

    http://img216.imageshack.us/img216/2500/screen2gv9.jpg

    The site is not live yet, the link I gave before is to the full zip archive of the files. That's not the page itself.
     
    JohnS0N, Mar 19, 2008 IP
  7. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #7
    I'm quite in a hurry with this project... any guides as to where I should look?
     
    JohnS0N, Mar 20, 2008 IP
  8. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I don't open zips but does that same IE pick up CSS styles on other pages? Because you can turn styles off in the browser. Maybe you did that by accident?

    Otherwise, throw the page and CSS up to a temporary folder, with a robots.txt so it doesn't end up on teh googles, and let us look at it in our browsers as an online web page. We might also find other problems that you can't test for locally.
     
    Stomme poes, Mar 20, 2008 IP
  9. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #9
    JohnS0N, Mar 20, 2008 IP
  10. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Okay, yup, I see it. My main suspect is the comments just after the doctype. Are you able to move those somewhere else? (I'd stick them just beneath your internal styles, just before the end of </head>)

    IE does have this thing where sometimes, for some reason, it looks at commented stuff. Since it comes before the <html> tag, I'd move that first.

    I don't see anything in the CSS that would exclude IE. It is however seeing your CSS-- the text is coloured etc. It seems it's only ignoring centering and the such. I don't see anything in the CSS to prevent that, and you have a proper doctype with nothing in front of it... so I'd say, look at it after moving that commented text somewheres else.
     
    Stomme poes, Mar 20, 2008 IP
  11. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #11
    Oh, it seems that in this version I forgot to remove the comments. I designed this template out of three templates.

    However it seems this is not the problem, since it still does not display. Some CSS styles are not separated and written directly into the index.html, so this might be the reason it displays?

    Any other clues? Thanks in advance!

    P.S. Have you seen this screenshot? This is how the page appears in IE6

    http://img216.imageshack.us/img216/2500/screen2gv9.jpg
     
    JohnS0N, Mar 20, 2008 IP
  12. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yeah, I saw it. IE6 and IE7 do it. Actually, so does IE5.5!

    The only reason some of the colours are showing up, and some of the stuff is staying in the middle, is because you've got some inline CSS styles which IE is picking up on. While inline styles will always override internal and external styles, that's not the problem.

    I can't figure this one out. You've got some errors in the HTML but that shouldn't stop the CSS. You've also got some errors in the CSS but not the type which would stop them from rendering (forgetting a closing } would stop all styles after that point, but I didn't see any errors like that).

    Opera, Safari, FF2 and 1.5, Konqueror, all show the external css.

    Damn, this one's tricky. Or it's something really stupid and obvious. One or the other. Try validating both documents and check again.
     
    Stomme poes, Mar 20, 2008 IP
    JohnS0N likes this.
  13. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #13
    Oh good lord, I found it! This was wrong:

    Before:

    Now Fixed:

    I forgot to add " after Times New Roman. What a stupid issue for 24 hours of my time, lol! :D

    Thanks A lot Stomme poes for jumping in!
     
    JohnS0N, Mar 20, 2008 IP
  14. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #14
    "Or it's something really stupid and obvious. "

    Yep. Forgot to close the quote.
    
    .style1 {
        font-family: "Times New Roman;   /*<- here*/
    	font-size: 12px;
    	color: #666666;
    }
    Code (markup):
    //edit: Curses! Late by seconds.

    cheers,

    gary
     
    kk5st, Mar 20, 2008 IP
    JohnS0N likes this.
  15. JohnS0N

    JohnS0N Notable Member

    Messages:
    1,581
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    210
    #15
    Looks like we figured it out in the same minute, lol :D:D
     
    JohnS0N, Mar 20, 2008 IP