Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Weird Internet Explorer problem with coding

    Well internet explorer is having problems with this code:

    Code:
    <div class="bbg1">
    <center><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></center>
    </div>
    Now on Firefox, chrome, opera,etc. it is fine. But IE needs to be compatability mode in order to show this without problems. What is old about this coding? The problem is www.nokialogy.com.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    This isn't a PHP problem.
    Moving from the PHP forum to HTML/CSS.
    The problem is the center tag, use an alignment instead on the div.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello Devaspora,
    You <body> tag in the wrong place.
    Plenty of other things you can fix there too. Have a look at http://validator.w3.org/check?verbos...om%2Fforums%2F and check out the links about validating in my sig below.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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