IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Ie 6 Conditional Statement Problems

, Wont Work


BooZker
no avatar
Mad Scientist of 2006
*********
Group: [HOSTED]
Posts: 750
Joined: 27-April 06
From: Washington State in the USA
Member No.: 22,661



Post #1 post Oct 18 2007, 10:06 PM
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Home</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="ie6style.css" />
    <![endif]-->
</head>


OK that's my code. I have been using IE conditionals for awhile and never had any problems. Now it wont work at all. I have tried so many different ways and nothing works. I would prefer it to be in the /css directory, but i dont know, it didn't work there so i tried the root.

you can view this file at http://oscargodson.com/dev/orca

FF and Safari it looks like it is supposed to (and i didn't design just slicing it for a client)

IE6 is having the issues and I just want to put a conditional in there and it will fix it all. The top shadow you see in FF and Safari should be gone in IE6 because i took it out to test it. So you can see if the shadow that shadow is gone.
Go to the top of the page
+Quote Post
chaosdesign
no avatar
Member [Level 2]
*****
Group: Members
Posts: 79
Joined: 26-September 07
From: Blenheim NZ
Member No.: 50,700



Post #2 post Oct 18 2007, 10:49 PM
QUOTE(BooZker @ Oct 19 2007, 11:06 AM) [snapback]351880[/snapback]
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Home</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="ie6style.css" />
    <![endif]-->
</head>


OK that's my code. I have been using IE conditionals for awhile and never had any problems. Now it wont work at all. I have tried so many different ways and nothing works. I would prefer it to be in the /css directory, but i dont know, it didn't work there so i tried the root.

you can view this file at http://oscargodson.com/dev/orca

FF and Safari it looks like it is supposed to (and i didn't design just slicing it for a client)

IE6 is having the issues and I just want to put a conditional in there and it will fix it all. The top shadow you see in FF and Safari should be gone in IE6 because i took it out to test it. So you can see if the shadow that shadow is gone.

What you need is the condition before the normal style sheet

A basic form of this is the If-Then-Else statment

If (logic happenes ie Browser),

Then (use this style sheet)

Else (or if logic isn't true then use this style sheet)

The above just gives you an idea of how to approach the situation.

Go to the top of the page
+Quote Post
jlhaslip
no avatar
Insert Custom Title Here
*******************
Group: [MODERATOR]
Posts: 4,903
Joined: 24-July 05
From: Linux, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:81.50



Post #3 post Oct 18 2007, 11:29 PM
Nope, he has it right.
Load the main css file first and then the IE css file only needs to contain the rules that should change if the Browser is an IE and meets the contitional. The Conditional can be used to select specific IE versions, too.

CODE
<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->

From http://www.quirksmode.org/css/condcom.html

Looks good to me.

Check the file path? and remember that the references to images inside the css file should be referenced from the CSS file, not the HTML file.

*** edit ***

you are missing the style for the nav container in ie css file so the styling from the non-ie stylesheet is continuing to affect the NavContainer, which is likely the problem you are having.
Go to the top of the page
+Quote Post
mahirharoon
no avatar
Advanced Member
*******
Group: Members
Posts: 102
Joined: 25-November 07
Member No.: 53,695



Post #4 post Dec 1 2007, 05:25 PM
no problem with ie6 when checked
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   16 willmark 495 23rd October 2009 - 01:48 PM
Last post by: TheDarkHacker
No New Posts   0 OpaQue 17,178 9th September 2004 - 08:40 AM
Last post by: OpaQue
No New Posts 4 zip_mc 13,280 22nd September 2009 - 10:26 AM
Last post by: akira550
No New Posts   4 stevey 10,207 16th August 2004 - 07:17 PM
Last post by: pr3dr49
No New Posts   6 winflowers 9,040 11th September 2004 - 09:14 PM
Last post by: MSTR
No New Posts 4 spawn_syxx9 8,322 22nd September 2009 - 03:45 PM
Last post by: jlhaslip
No New Posts 2 spawn_syxx9 4,706 22nd September 2009 - 07:24 PM
Last post by: BuffaloHelp
No New Posts   0 dolrich06 103 17th September 2009 - 11:21 AM
Last post by: dolrich06
No new   19 Moneymaker 12,133 9th November 2004 - 06:01 PM
Last post by: spawn_syxx9
No New Posts   0 kelp 4,198 2nd October 2004 - 01:50 AM
Last post by: kelp
No New Posts   3 elrohir 1,475 8th April 2009 - 02:28 PM
Last post by: varalu
No New Posts   5 Saint_Michael 6,872 19th November 2004 - 09:01 AM
Last post by: karlo
No New Posts   6 darkwarrior 6,676 12th October 2004 - 12:23 AM
Last post by: odomike
No New Posts   3 TCracker 1,282 24th December 2008 - 03:36 PM
Last post by: iG-Teengirl
No New Posts   5 darkwarrior 7,037 23rd October 2004 - 10:47 AM
Last post by: X3r0X


 



RSS Open Discussion Time is now: 6th November 2009 - 09:35 PM

Web Hosting Powered by ComputingHost.com.