liamloveslearning Posted October 8, 2010 Share Posted October 8, 2010 Hi all, im having a tedious time sorting my website in ie6!, I want to show 1 navigation if ie6 if not show the other, Is there a specific hack for this? Ive tried googling and found nothing and ive used the following which doesnt seem to work... <!--[if IE 6]> my code to show if ies [ELSE]show this if its anything other than ie6 <![endif]--> Quote Link to comment Share on other sites More sharing options...
haku Posted October 9, 2010 Share Posted October 9, 2010 Conditional comments don't work with if/else I don't believe. You only get if. You will have to rethink your logic on this. You could use your conditional comment to wrap everything in an extra div with an ID you can target in IE6 (and only IE6). That's one suggestion. Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted November 8, 2010 Author Share Posted November 8, 2010 brilliant thanks haku Quote Link to comment Share on other sites More sharing options...
Dragosvr92 Posted November 12, 2010 Share Posted November 12, 2010 i remember i thought on something like this myself time ago... for a few seconds i thought to merge the php if statement with the IE If thing but then i laughted of myself lol Quote Link to comment Share on other sites More sharing options...
SuperBlue Posted November 28, 2010 Share Posted November 28, 2010 Hi all, im having a tedious time sorting my website in ie6!, I want to show 1 navigation if ie6 if not show the other, Is there a specific hack for this? Ive tried googling and found nothing and ive used the following which doesnt seem to work... <!--[if IE 6]> my code to show if ies [ELSE]show this if its anything other than ie6 <![endif]--> There was one, then there was another one, and a third. Now they are talking about IE9.. And you are still wasting time with IE6? You would think useless junk should be avoided, even more so, when it comes to useless junk, about a decade old. Maybe its time for me to reinstate my warning, about old browsers in my signature.. Huh? nah! Quote Link to comment Share on other sites More sharing options...
maliuk Posted December 9, 2010 Share Posted December 9, 2010 I thought most of the developers gave up IE6 support and everyone shows a message telling them how old their browser is and download a new browser Quote Link to comment Share on other sites More sharing options...
bspace Posted December 17, 2010 Share Posted December 17, 2010 or this should work if you really want to use conditional statements <!--[if lte IE 6]> my code to show if ie6 or less <![endif]--> <!--[if gt IE 6]> show this if its ie higher than ie6 <![endif]--> <!--[if !IE]> show this if its anything other than ie <![endif]-->[/code] see: http://css-tricks.com/how-to-create-an-ie-only-stylesheet/ i know it's about style sheets but it has a lot of info on IE conditional statements Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.