Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 1
Trades: 0
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
 
 
Register now for full access!
Old 11-11-2007, 11:12 AM Re: Firefox ignores IE-Hack??
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Firefox ignores IE-Hack??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.10817 seconds with 12 queries