This is a discussion on "CSS Internet Explorer only" within the Web Page Design section. This forum, and the thread "CSS Internet Explorer only are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Internet Explorer only
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
CSS Internet Explorer only
Hi
Is there a simple way to apply a CSS rule for Internet Explorer only? I mean in the CSS (not doing browser detect in script) with thanks Justin |
|
|
|
#2
|
|||
|
|||
|
Re: CSS Internet Explorer only
|
|
#3
|
|||
|
|||
|
Re: CSS Internet Explorer only
Hi Karrine
Thanks Is there something I can use in my CSS file rather than in the html? Justin Last edited by Kropotkin; Sep 5th, 2007 at 12:00. Reason: small typographical error |
|
#4
|
|||
|
|||
|
Re: CSS Internet Explorer only
It's better to use the conditional comments as "they do not rely on one browser bug to solve another one, as all true CSS hacks do. Besides, they can be used for more than CSS hacks only (though that rarely happens)."
But here's the list of CSS Hacks |
|
#5
|
|||
|
|||
|
Re: CSS Internet Explorer only
Thanks Karrine
I don't like using the hacks either : could I not just use an IE CSS expression and FF will ignore it? Like so:
Justin |
|
#6
|
|||
|
|||
|
Re: CSS Internet Explorer only
If it's an IE-only property, then ... it's an IE-only property.
If however it's a property decided by the W3C and you only want IE to use it, then, use the conditional comments. |
|
#7
|
|||
|
|||
|
Re: CSS Internet Explorer only
Ok
But what is wrong with using an expression? If only IE understands 'expression' then surely I'm ok? |
|
#8
|
|||
|
|||
|
Re: CSS Internet Explorer only
Nothing wrong with using it ... as a matter of personal preference, if I were to use IE-only properties, I put them in a separate IE-only stylesheet.
|
|
#9
|
|||
|
|||
|
Re: CSS Internet Explorer only
|
![]() |
| Tags |
| css |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| css internet explorer 6 firefox | thosecars82 | Web Page Design | 2 | May 19th, 2008 15:37 |
| Internet Explorer 6.0 & 5.5 don't like me | bodgit | Web Page Design | 0 | May 10th, 2008 17:40 |
| Internet Explorer 8 | CloudedVision | Webforumz Cafe | 9 | Feb 20th, 2008 23:05 |
| 2 Internet Explorer Problems - Help! | mikka23 | Web Page Design | 5 | Aug 12th, 2006 18:57 |
| MAC Internet Explorer 5 - Problems | davva | Web Page Design | 5 | Jul 20th, 2006 17:46 |