Topic: Conditional comments issues with ie6

hello
its not a new topic, i know but i still havent found the solutionon this wensite or on the net.
have fixed all the issue with firefox as lsw said ,and i fixed the issues with ie6 also. i did a seperate css filesheet for ie6  but as i post the link to the conditional comments

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Welcome to the Palestinain Arabic institue</title>
    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]>
<link href="styleIE.css" rel="stylesheet" type="text/css"  media="all" />
<![endif]-->
</head>

i want the website to work with ie6.
if needed the css filesheet and websites codes can be uploaded.

thank you

Vote up Vote down

Re: Conditional comments issues with ie6

You may want to look at this post re your choice of doctype:

http://www.killersites.com/forums/post/4224/#p4224

Just because my computer is online does not mean that I am.
a&b WebDesign

Vote up Vote down

Re: Conditional comments issues with ie6

There's nothing wrong with your code. You have the conditional comment after the main stylesheet link so that it will be processed last and only apply to IE6, that's OK and should work.

However, don't use XHTML 1.1, we recommend HTML 4.01 on this forum as XHTML 1.1 is only for special XML functions, not ordinary websites. You can use XHTML 1.0 but the code content="text/html" just changes XHTML 1.0 back to HTML so it's pointless to use XHTML 1.0.

Vote up Vote down

Re: Conditional comments issues with ie6

hey, yes it worked. I changed to html and i use the link for doctype that thelma used.
thanks!

buuut

Thelma you gave me the link to the right doctype (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">)

, when i put the doctype it works pefectly but as i open the html file once again (close and open the file again with dreamweaver) it still goes back to the old doctype ( <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> ).

Last edited by wasso (February 21, 2009 4:10 pm)

Vote up Vote down

Re: Conditional comments issues with ie6

I am just guessing here but if you are using a master file (.dwt) which then is connected to all of your other html files then those files will continue to use whatever that master file uses except for the editable region that you've assign.

Imagine Building and Managing an Online Business
The Kasper Group

Vote up Vote down