1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Once again about differences between IE and FF

Discussion in 'CSS' started by tayiper, Feb 25, 2007.

  1. #1
    In particular it's about the differences between IE 6 and FF (I don't have IE 7 so I can say for it); you see, on the "intro.html" page on one particular site-variant of mine hosted on the Atspace free-host: http://ivan-tadej.atspace.com/intro.html I have a "list of graphics/banners" at the top and at the bottom. But the problem is that as it is now, they align diametrically differently in IE 6 and FF, i.e. one code works OK in IE but not in FF and reverse, the other code works OK in FF but not in IE.


    The code that works in IE is the following: the list of graphics being inside div class "seven1": width: 760px;

    (this was the only value that worked back then with old layout; see here: http://shirker.freehost386.com/intro.html; and btw. it doesn't work in FF even if I put the graphics inside addtitional div "align": text-align: center; class)

    The code that works in FF is the following: the list of graphics being inside div class "eight": width: 800px;

    (and similarly it doesn't work in IE even if I put the graphics inside addtitional div "align": text-align: center; class)


    Any idea on what am I missing for this to work correctly??


    P.S. - My now main site-variant: http://tadej-ivan.50webs.com/ doesn't have this "list of graphics/banners" on these pages anymore, but I would like to have those set correctly anyway.


    tayiper
     
    tayiper, Feb 25, 2007 IP
  2. yangyang

    yangyang Banned

    Messages:
    757
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use IE7 and FF2, the difference between them is fading.
     
    yangyang, Feb 28, 2007 IP
  3. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Thanks much yangyang for the reply ...


    tayiper
     
    tayiper, Mar 6, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    You have this, which is forbidden in html (which is what you're serving):

    <?xml version='1.0' encoding='windows-1250' standalone='yes'?>

    That kicks IE6 into quirks mode where it follows a non-standard set of rules. Get rid of it.

    You also have this,

    <meta http-equiv="content-type" content=
    "text/html; charset=utf-8" />

    which contradicts the xml declaration's encoding. You appear to be using the windows proprietary character set which means you should configure your editor for utf-8, or change your content-type charset to windows-1250. I would favor using utf-8.

    cheers,

    gary
     
    kk5st, Mar 6, 2007 IP
  5. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Thanks for the reply kk5st to you too, but hmmm, I am really not sure where exactly you got that <meta http-equiv="content-type" content="text/html; charset=utf-8" /> line, i.e. I just checked the source of all my site-variants (even the oldest ones, but especially of thise two linked in the above/initial post), and surely all have this <meta http-equiv="content-type" content="text/html; charset=windows-1250" /> in the header instead.


    tayiper
     
    tayiper, Mar 7, 2007 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    You're right, my bad. Your compacted formatting is so hard to read (why in hell are you doing that?), that I ran the source through Tidy to give it a sane formatting. My Tidy is configured to convert to utf-8, xhtml 1.0 strict, and it emends the DTD and http-equiv to match. I didn't think of that when I pasted to the post.

    You must, though, get rid of the xml declaration, and anything else that precedes the DTD. Else, IE cannot be made sane.

    cheers,

    gary
     
    kk5st, Mar 8, 2007 IP
  7. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #7
    Well errr, I somehow managed to sort things out anyways, at least some of the problems ...


    tayiper
     
    tayiper, Mar 14, 2007 IP
  8. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #8
    You are causing many of the differences yourself by refusing to remove the xml declaration. Yes, you can hack, patch or work around those differences, but why not remove some of them the correct way?

    It's up to you. You can founder about, glossing over your own errors, or you can learn to do things properly from the get-go. Doing things correctly won't fix all the IE stupidities, but it will eliminate the ones you're causing.

    gary
     
    kk5st, Mar 14, 2007 IP