Need Help, Template Centered in FF ,Opera but not IE

Discussion in 'HTML & Website Design' started by Larry S:), May 10, 2007.

  1. #1
    Hi

    Have a site restaurantreviewed(dot)com. The template loads centered in FF and Opera but text off to left side in IE.

    Is there a way to correct this?

    Thanks in Advance

    Larry
     
    Larry S:), May 10, 2007 IP
  2. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi

    IE will be in quirks mode, due to you have not delared a DTD (document type definition). Without this, IE doesnt know how to render your web page, add a DTD and that should sort the problem.

    Ash :)
     
    bacanze, May 10, 2007 IP
    Larry S:) likes this.
  3. Larry S:)

    Larry S:) Well-Known Member

    Messages:
    538
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thanks, Bacanze

    I'll try that, if I knew how to give rep I would
     
    Larry S:), May 10, 2007 IP
  4. Larry S:)

    Larry S:) Well-Known Member

    Messages:
    538
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Tried a couple different DTD, still doesn't seem to want to work. I added <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">


    to the index.php. Is this the right DTD or do I have to add them to all the files?
     
    Larry S:), May 10, 2007 IP
  5. Trapped

    Trapped Well-Known Member

    Messages:
    1,832
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    130
    #5
    Oh my God, i just took a quick look at the code and it is a mess. You have two <html> tags, two <doctype's ....I am too tired and too afraid to look deeper into it. If by tomorrow when i wake up you haven't resolved it, once i get some time will take a look into it.
     
    Trapped, May 10, 2007 IP
  6. parag

    parag Banned

    Messages:
    62
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi Larry S:)
    In FF the design is perfect except for this small thing appearing at the top
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    Code (markup):
    In IE(6.0.xx) the design is centered but the content is not aligned properly.
     
    parag, May 10, 2007 IP
  7. parag

    parag Banned

    Messages:
    62
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ok Larry S
    I saved your page & tried this, it worked for me
    Edit this in your style.css
    original
    .dc {
    	VERTICAL-ALIGN: top; WIDTH: 303px
    }
    Code (markup):
    Edit to
    .dc {
    	VERTICAL-ALIGN: top; WIDTH: 303px; display: inline;
    }
    Code (markup):
    - Parag
     
    parag, May 10, 2007 IP
    Larry S:) likes this.
  8. Larry S:)

    Larry S:) Well-Known Member

    Messages:
    538
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    160
    #8
    Thanks Parag
    Worked awesome, rep left. Thanks again
     
    Larry S:), May 11, 2007 IP
  9. parag

    parag Banned

    Messages:
    62
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Glad to help :)
    Thanks for the rep!
     
    parag, May 11, 2007 IP