Internet Explorer (IE) or CSS Conditional Statements
Internet Explorer conditional statement or CSS Conditional statements is a bit of code specially made for Internet Explorer browers which instructs ie browser to perform specific instructions only for internet explorer browser, only windows platform supports ie conditional statements.
the basic structure or syntax of conditional statements is just..like plain HTML comments so therefore you can only use it inside an html file..
here are some examples of Internet Explorer Conditional Statement syntax
<!--[if IE 6]> enter your instructions for ie6 here <![endif]-->
<!--[if gte IE 5]> enter your instructions for ie browers greater than or equal to ie5 <![endif]-->
<!--[if lte IE 6]> enter your instructions for ie browsers lower or equal to ie6 <![endif]-->
<!--[if lt IE 6]> enter your instructions for ie browsers lower than ie6 <![endif]-->
<!--[if gt IE 6]> enter your instructions for ie6 here <![endif]-->
this is very usefull for example if you want to separate a css file for different different versions
of internet explorer you can use this, or if you want to output messages to your site visitor telling
them that they are using ie. here are some examples
Using conditional statement to separate css stylesheet
<!--[if IE 6]> <link rel="stylesheet" type="text/css" href="ie6.css"> <![endif]-->
<!--[if IE 7]> <link rel="stylesheet" type="text/css" href="ie7.css"> <![endif]-->
Using Conditional statement to output text to the browser
<!--[if IE 6]> Hi There! You are using Internet Explorer 6 <![endif]-->
<!--[if IE 5]> Hi there! You are a legend your still using IE5? <![endif]-->
Enjoy
Tags: Browser, CSS, Tips and Tutorials, web design


Hi everyone im 






October 31st, 2008 at 6:09 am
[...] Go to the author’s original blog: Internet Explorer (IE) or CSS Conditional Statements [...]
October 31st, 2008 at 6:52 pm
out of the topic… ang ganda ng header image mo ah. nice idea. hehe. anu software gamit mo sa paggawa nyan???
don_ser’s last blog post..My Highest Google Earning… weeeeeeeh
Reply
Daniel Dumas (79 comments.) Reply:
November 1st, 2008 at 7:40 am
waheheh thanks!
photoshop lang poh gamit ko diyan
Reply
November 2nd, 2008 at 11:57 am
…dropping by to say Happy Halloween!
Reply
Daniel Dumas (79 comments.) Reply:
November 2nd, 2008 at 1:30 pm
happy halloween too.. ;)
Reply
November 11th, 2008 at 2:23 pm
u r site is very nice
#
# Hi There! You are using Internet Explorer 6
#
i want more deep example of this statement
please give me that good example
Reply
February 2nd, 2009 at 11:32 am
I enjoyed reading your post and really like your style. I have bookmarked for future visits …. Keep up the good work
Reply
February 6th, 2009 at 2:26 am
I enjoyed reading this article. It seems that you are a great source of information. Keep them coming.
Reply
February 15th, 2009 at 8:23 pm
I have been bookmarking several sites with printable grocery coupons. If you want my list let me know. I am sure you’re like us, needing to save every dime you can.
Reply
March 6th, 2009 at 10:19 pm
hello really a nice one..can you provide more information on this?i m interested
Reply
May 13th, 2009 at 8:00 pm
Great post! I read your other posts as well and I subscribed to your RSS Feed!
Regards,
Mike
Reply
May 21st, 2009 at 3:52 am
Do let us know if you have up to date news…
Reply
June 12th, 2009 at 1:31 am
Your blog is like an encyclopedia to me. If i need something I just go here and search…and hola! I get it! Great to have some expert bloggers around like you…..
Reply