
Originally Posted by
b1 huck
thanks bro ha...
IE nalang jud nabikil... way choice mag create nalang kog code sa CSS intended for IE?
Wa diay code or conditional statements nga pwede nato mabutang sa <head> tag?
Salamat..
there are 2 ways
External
PHP Code:
<!--[if gte IE 8]>
<link rel="stylesheet" href="your-css-for-ie-here.css">
<![endif]-->
Internal
PHP Code:
<!--[if gte IE 8]>
<style>
*{
your:css-code-here;
}
</style>
<![endif]-->
you can even use it to specifically call a js or display an element.
PHP Code:
<!--[if gte IE 8]>
<script src="your.js"></script>
<![endif]-->
PHP Code:
<!--[if gte IE 8]>
<script>
alert('Hello weirld');
</script>
</style>
<![endif]-->
PHP Code:
<!--[if gte IE 8]>
<p>IE sucks</p>
<![endif]-->