Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Website in IE is completely messed up.

  1. #11
    Join Date
    May 2012
    Posts
    29
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Crazykld69 View Post
    Crap I'm in South Carolina until Sunday. If you can wait until that long I can go thru your code more extensively and actually see what's going on. To me it seems like a float issue but I could be wrong. Ill check once I get back unless you fix it before then
    It's not very urgent, but thank you, I appreciate that.

  2. #12
    Join Date
    Dec 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Put the following metetag as the first one behind the head-tag then IE9 will look like IE8 and show the site like it was ment.

    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >

    Kind regards,
    Jan

  3. #13
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,953
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Using a meta tag for IE will not help in this case because the page looks poorly in IE 8 as well. There are at least two problems with the page, probably more. It doesn't have a valid DOCTYPE. It does, but not as the first thing. The first thing on the page is an opening <html> tag:

    Code:
    <html>
    <head>
    </head>
    <body>
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-35881828-1']);
      _gaq.push(['_trackPageview']);
    
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    
    </script><!DOCTYPE html>
       <html class="no-js">
    <head>
    <meta charset="UTF-8">
    <meta name="keywords" content="maszyny . . .
    As you can see it has two of those, that's invalid. So validating the page would be a good idea:

    http://validator.w3.org/

    The other problem I see with IE is the use of text-align: center for the body in the ie.css stylesheet. This can actually cause more problems than it fixes. Use margin: 0 auto; to center individual elements that have width, and text-align center only for individual elements containing text that you want centered. The margin: 0 auto; won't work in IE however, until you have a valid DOCTYPE as the very first thing in the page's source code.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Script messed up in IE
    By Marylander in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 09-12-2009, 05:12 PM
  2. site all messed up in IE6
    By isntworkdull in forum CSS
    Replies: 11
    Last Post: 10-02-2008, 07:57 AM
  3. Help: New website layout messed up in FF (IE7 works fine)
    By TheCrazyLexx in forum Looking for such a script or service
    Replies: 4
    Last Post: 08-08-2007, 04:55 PM
  4. HELP! It's all messed up!
    By Erika in forum JavaScript
    Replies: 12
    Last Post: 02-10-2007, 03:07 AM

Bookmarks

Posting Permissions

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