Problems involving CSS with IE

Discussion in 'HTML & Website Design' started by psylance, Jan 22, 2009.

  1. #1
    Solved.......
     
    psylance, Jan 22, 2009 IP
  2. markupdude

    markupdude Peon

    Messages:
    215
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Reason - What i see is your HTML lacks a proper DTD [Doctype Declaration], so quite possibly IE6 is ignoring some of the CSS.

    Solution - add this to the top of your page :

    <!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" lang="en" xml:lang="en">

    Do that and we shall see.
     
    markupdude, Jan 22, 2009 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    Not using a doctype will not make IE6 ignore CSS but, yes, a doctype is always required for modern web pages. New web pages, however, have no need for the transititonal doctype and using a XHTML one is questionable. Use this one:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
     
    drhowarddrfine, Jan 22, 2009 IP