CSS Internet Explorer only

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 5th, 2007, 11:52
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 5th, 2007, 11:53
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Internet Explorer only

Of course

Conditional comments
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 5th, 2007, 12:00
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 5th, 2007, 12:02
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 5th, 2007, 12:12
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
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:

Code: Select all
 
top: expression("1px"); /* FF will ignore this */
Thanks

Justin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 5th, 2007, 12:15
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 5th, 2007, 12:22
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Internet Explorer only

Ok

But what is wrong with using an expression? If only IE understands 'expression' then surely I'm ok?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 5th, 2007, 12:25
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 5th, 2007, 12:34
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Internet Explorer only

ok. i think you are right. I'm just at work and my hands are tied... lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css

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

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

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


All times are GMT. The time now is 14:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42