WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > Firefox ingors IE-Hack??

Reply
  Thread Tools Display Modes
Old 10th November 07, 03:44 PM   #1
myforum
WLC Member
 
Join Date: Nov 2007
Posts: 4
Default Firefox ingors IE-Hack??

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 my default.css I have used the IE detect hack:

<!--[if lt IE 6]>
<style type="text/css">
body{ behavior: url(fileadmin/tamplates/scripts/csshover.htc); }
</style>
<@import url(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
Old 6th December 07, 11:22 AM   #2
stuartm
WLC Member
 
Join Date: Dec 2007
Posts: 2
Default Re: Firefox ingors IE-Hack??

i had a similar problem with something i was doing the other week try adding another } after your IE hack
stuartm is offline   Reply With Quote
Old 9th December 07, 07:04 PM   #3
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Firefox ingors IE-Hack??

@import should be inside the <style> definition and must be before any rules are defined.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

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

Forum Jump


All times are GMT. The time now is 08:32 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.