Welcome Guest, Not a member yet? Register   Sign In
Can I use CSS conditional statements in CI ??
#1

[eluser]vincej[/eluser]
HI - I have just discovered that the nth-child selector is not supported in IE 8 or lower. so time to have an IE css sheet ! That is to say:

Code:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]--&gt;

I would like to use the base_url() function so I don't have to remember to change the path when I go live.

Can I somehow accommodate this inside the IE conditional statement ?

Many thanks !!

#2

[eluser]ludo31[/eluser]
href="&lt;?php echo base_url(); ?&gt;css/youfile.css"
#3

[eluser]InsiteFX[/eluser]
Code:
&lt;!--[if IE]>
    &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url('all-ie-only.css');?&gt;" /&gt;
<![endif]--&gt;
#4

[eluser]skunkbad[/eluser]
You could detect the browser type and version and serve a different style sheet.




Theme © iAndrew 2016 - Forum software by © MyBB