Welcome Guest, Not a member yet? Register   Sign In
Linking to Stylesheets
#8

[eluser]WanWizard[/eluser]
Move your application directory out of the system directory, and move your assets out of your application directory.

Most people use a /assets directory, in there you can create /css, /js and so on. You then create links like this:
Code:
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/defaultStyle.css"/>

which makes them independent of your application directory, and because you no longer hardcode your url's, fully portable.


Messages In This Thread
Linking to Stylesheets - by El Forum - 09-18-2010, 06:41 AM
Linking to Stylesheets - by El Forum - 09-18-2010, 09:39 AM
Linking to Stylesheets - by El Forum - 09-18-2010, 09:43 AM
Linking to Stylesheets - by El Forum - 09-18-2010, 10:05 AM
Linking to Stylesheets - by El Forum - 09-18-2010, 11:05 AM
Linking to Stylesheets - by El Forum - 09-18-2010, 11:16 AM
Linking to Stylesheets - by El Forum - 09-18-2010, 03:13 PM
Linking to Stylesheets - by El Forum - 09-18-2010, 03:16 PM
Linking to Stylesheets - by El Forum - 09-18-2010, 06:41 PM
Linking to Stylesheets - by El Forum - 09-18-2010, 06:43 PM
Linking to Stylesheets - by El Forum - 09-18-2010, 10:48 PM
Linking to Stylesheets - by El Forum - 09-19-2010, 12:36 AM
Linking to Stylesheets - by El Forum - 09-20-2010, 12:30 PM
Linking to Stylesheets - by El Forum - 09-20-2010, 01:56 PM
Linking to Stylesheets - by El Forum - 09-22-2010, 11:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB