Reply
Firefox ignores IE-Hack??
Old 11-11-2007, 07:09 AM Firefox ignores IE-Hack??
Junior Talker

Posts: 1
Hallo guys,

I have a terrible IE problem that I`m trying to fix since weeks! It`s the dropdown thing.
Well, I`ve just managed to get my submenu in IE visible and in Firfox everything went completely chaotic! I have done everything as it is explained and still, it wont work like it should. I hate it!

So, why is all this.
In the html structure I have used the IE detecting hack:

<!--[if lt IE 7]>
<style type="text/css">
body{ behavior: url(fileadmin/tamplates/scripts/csshover.htc); }
</style>
<link rel="stylesheet" type="text/css" media="screen" href="styles/ie6.css" />
<![endif]-->

and I thought it should be seen only from IE. Apparently not.
In the ie6.css I have only told IE, it should load gifs instead of pngs, and gave the submenu-link a 100% width, in order to IE actually show it :

#mainmenu ul ul li{
background-image:url(../images/menu/tv_button_links_tr.gif);
width:100%;
}

I tried it in IE and ... a miracle, it worked ... But in Firefox all went completly wrong - the submenu-links had 100% width and were gifs! It has read the ie6.css instructions and overwritten these in the default.css

Why is that? How can I keep both css-styles separated(Firefox should load png and IE gif, width, etc.)? I`ve used the standart IE-detecting hack

I thank you in advance!
myforum is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-11-2007, 11:12 AM Re: Firefox ignores IE-Hack??
LadynRed's Avatar
Super Moderator

Posts: 6,699
Location: Tennessee
It IS only seen by IE, other browsers ignore conditional comments completely !
Your problems with Firefox are NOT coming from that at all.
Get rid of the style block, put the behavior in the external file and use the conditional comment to call THAT ie6css file.

You need to put the rest of your css into another css file that all browsers, including IE will read - except when you tell it to read the file in the conditional comment.

If you'll post the code or a link, then we could figure out what IS affecting FF.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Firefox ignores IE-Hack??
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11343 seconds with 12 queries