|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 750 Joined: 27-April 06 From: Washington State in the USA Member No.: 22,661 ![]() |
Post
#1
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. |
![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 78 Joined: 26-September 07 From: Blenheim NZ Member No.: 50,700 |
Post
#2
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. |
![]() Group: [MODERATOR]
Posts: 4,336 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() myCENT:10.0 |
Post
#3
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. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 102 Joined: 25-November 07 Member No.: 53,695 |
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
0 | OpaQue | 434 | 9th September 2004 - 08:40 AM Last post by: OpaQue |
|||
![]() |
3 | zip_mc | 369 | 3rd August 2004 - 04:48 AM Last post by: X3r0X |
|||
![]() |
4 | stevey | 437 | 16th August 2004 - 07:17 PM Last post by: pr3dr49 |
|||
![]() |
6 | winflowers | 328 | 11th September 2004 - 09:14 PM Last post by: MSTR |
|||
![]() |
1 | spawn_syxx9 | 497 | 3rd September 2004 - 10:03 PM Last post by: BoSZ |
|||
![]() |
0 | spawn_syxx9 | 290 | 14th September 2004 - 05:03 PM Last post by: spawn_syxx9 |
|||
![]() |
19 | Moneymaker | 1,680 | 9th November 2004 - 06:01 PM Last post by: spawn_syxx9 |
|||
![]() |
0 | kelp | 445 | 2nd October 2004 - 01:50 AM Last post by: kelp |
|||
![]() |
2 | elrohir | 610 | 12th September 2006 - 07:48 PM Last post by: elrohir |
|||
![]() |
5 | Saint_Michael | 492 | 19th November 2004 - 09:01 AM Last post by: karlo |
|||
![]() |
6 | darkwarrior | 340 | 12th October 2004 - 12:23 AM Last post by: odomike |
|||
![]() |
2 | TCracker | 158 | 23rd October 2008 - 11:34 AM Last post by: shadowx |
|||
![]() |
5 | darkwarrior | 258 | 23rd October 2004 - 10:47 AM Last post by: X3r0X |
|||
![]() |
2 | Dreamer | 461 | 6th November 2004 - 10:39 AM Last post by: king mike |
|||
![]() |
0 | Trystim | 298 | 26th October 2004 - 12:42 PM Last post by: Trystim |
|||
|
Lo-Fi Version | Time is now: 5th December 2008 - 08:25 AM |