...

View Full Version : How to apply IE if condition within CSS file?



Uzair
02-27-2008, 08:24 AM
I know how to apply CSS IE if conditions in html file but I wanna know if there is any way to apply the IE if condition within a CSS file?

Regards,
Uzair

_Aerospace_Eng_
02-27-2008, 08:26 AM
No there isn't, at least not any valid solution. The solution would require javascript and it can get messy.

abduraooft
02-27-2008, 08:43 AM
AFAIK, if we put !important with any rule, browsers like FF will take them as the last word and don't consider any other changes after that. At the same time we can change it for IE.
Say..

div#test{
width:200px !important; /*taken by FF*/
width:250px; /*taken by IE*/
}

Uzair
02-27-2008, 08:48 AM
Thanks for your help sir. I am using below code to show list items with icon. everything is fine on FF & Safari but the icon is invisible when I view the page on IE6 & 7. Please help me how can I make the ico background image visible on IE too?

.tbl_bluefree .right UL{margin:6px 0px;padding:0px;}
.tbl_bluefree .right UL LI{list-style:none;background:url(images/ico_ok.gif)left no-repeat;padding-left:24px;line-height:22px;}

Regards,
Uzair

_Aerospace_Eng_
02-27-2008, 08:49 AM
You need to have a space before the word left.

background:url(images/ico_ok.gif) left no-repeat;

Uzair
02-27-2008, 08:51 AM
Ohhh... my mistake!!!

Thank you very much sir.

Uzair
02-27-2008, 08:56 AM
Sir, can u please guide me that how can I check my site on MAC?
As I am running WinXP & my client is running MAC, I want to check the site on MAC environment before delivering him the final result. Is there any online tool which show us the pages like how they look on MAC?

Please guide & help...

Best Regards,
Uzair

_Aerospace_Eng_
02-27-2008, 09:05 AM
www.browsercam.com provides free 24 hour trials. You can also use www.browsershots.org

There may be others. Use the forum search feature as well as google.

Apostropartheid
02-27-2008, 06:08 PM
I thought that the !important bugs were fixed in IE7?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum