Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Designing > HTML/CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-18-2007, 12:27 AM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 707
Default Conditional Comments

I'm just wondering what everyones views are on IE conditional comments. As everyone should be aware by now, all versions of Microsoft Internet Explorer (IE) are riddled with a multitude of bugs which various hacks have been developed to correct for.

But in recent times most web design experts have been recommending dispensing with these hacks in favour of IE conditional comments which still allow your pages to validate, despite feeding different CSS and/or HTML to specific versions of IE.

However, the more I design websites, the less I find the need to use this technique to make my sites work cross browser. Lately I have been finding that just a few minor modifications to the code (but still W3C valid) I can make most designs work fine without the use of IE conditional comments.

So how do the rest of you feel about this? Do you still use old school style hacks? Or do you use conditional comments? Or do you find that neither are usually necessary?


Here are some examples of IE conditional comments:
Code:
<!--[if IE 6]>
This code will be displayed in IE6 only
<![endif]-->
Code:
<!--[if gte IE 6]>
This code will be displayed in IE6 or higher only
<![endif]-->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-18-2007, 11:26 AM
Junior Member
 
Join Date: Dec 2007
Posts: 6
Smile

I dont think Conditions are required.
Most of the time i do not use them, yes but for a minor time I need, but still 99% i do not use conditions.

Alsoeveryone will love to use such code or develop such code that have less conditions.
__________________
Programming Discussion Forum
Free forum for programmers and resource of free technical articles and tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-18-2007, 12:40 PM
BigAlReturns's Avatar
Moderator Extraordinaire!
 
Join Date: Dec 2007
Location: The Wirral, England
Posts: 291
Send a message via MSN to BigAlReturns
Default

I've never felt the need to use them, always been able to get a page working with "valid" hacks. If you are going to use them then the most appropriate way is probably to use entirely different stylesheets for different browsers, then at least in proper browsers you're still using valid code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-19-2007, 07:35 PM
Junior Member
 
Join Date: Dec 2007
Posts: 28
Send a message via Yahoo to TYPELiFE
Default

I try to design and code my websites so I don't have to differentiate and update two different versions (or more) to update my material on all platforms.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-23-2008, 05:42 AM
Junior Member
 
Join Date: Oct 2008
Posts: 24
Default

i am using this condition still.

Code:
<!--[if IE 6]>
This code will be displayed in IE6 only
<![endif]-->

Code:
<!--[if gte IE 6]>
This code will be displayed in IE6 or higher only
<![endif]-->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thread Tools
Display Modes

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

vB 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
Looking for comments on site usability and nav. fiveoftwo Website Reviews 1 06-01-2007 11:45 PM


All times are GMT -5. The time now is 12:13 PM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.