Problem with IE7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pranayiitk
    New Member
    • Jun 2007
    • 1

    Problem with IE7

    Hi,

    In the process of upgrading our website from IE6 to IE7,we are facing some alignment issues on alomost all screens in our website.

    We are using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> to follow our standards. However, what I see is that if I remove this doctype from my HTML files, all the problems get solved immediately. But removing this doctype will be a bad idea as it is a legal requirement on UK websites to use such doctypes.

    We follow "Div" classes patterns to call our classes defined within the .css files. What I observe is that if i change "width" parameter from % to px for certain classes in our css files, most of the problems get solved. Is it like this that IE7 doesn't accepts "width" parameters in % OR is it a problem wrt the DocType provided above?

    Please let us know what can be the best possible solution in such a scenario. Can we replace our Doctype with some other value OR should we go for a change in our .css files.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Please read the article under "Articles" above about doctypes.

    Comment

    • michaelh613
      New Member
      • Jun 2007
      • 6

      #3
      Can you give a link to the article? Thanks

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        At the top, under "Articles"->HTML/CSS->"The DTD or Doctype"

        Comment

        Working...