Welcome Guest, Not a member yet? Register   Sign In
External Stylesheets not working anywhere!
#3

[eluser]Chris Newton[/eluser]
Put your CSS wherever you'd like, then target that url.

Try putting it in the folder '/css/test.css' for instance '/' being the root of your site, not your CI install.

From CI, you can then call it with
Code:
<?= link_tag(base_url().'css/test.css'); ?>
That should generate the following code
Code:
<link href="http://yoursite.com/css/test.css" rel="stylesheet" type="text/css" />

If you're having trouble targetin the CSS, the easiest way to find out where your script is *trying* to call it, is to look in your web pages source output. You'll see exactly where CI thinks it's located.


Messages In This Thread
External Stylesheets not working anywhere! - by El Forum - 07-02-2008, 10:51 AM
External Stylesheets not working anywhere! - by El Forum - 07-02-2008, 11:07 AM
External Stylesheets not working anywhere! - by El Forum - 07-02-2008, 11:32 AM
External Stylesheets not working anywhere! - by El Forum - 07-02-2008, 12:06 PM
External Stylesheets not working anywhere! - by El Forum - 07-02-2008, 12:16 PM
External Stylesheets not working anywhere! - by El Forum - 07-02-2008, 01:11 PM
External Stylesheets not working anywhere! - by El Forum - 07-02-2008, 03:49 PM
External Stylesheets not working anywhere! - by El Forum - 09-15-2009, 04:56 AM
External Stylesheets not working anywhere! - by El Forum - 09-15-2009, 05:45 AM
External Stylesheets not working anywhere! - by El Forum - 09-15-2009, 05:50 AM
External Stylesheets not working anywhere! - by El Forum - 09-15-2009, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB