Welcome Guest, Not a member yet? Register   Sign In
CSS not working
#3

It is bad practice to place js and css inside the application folder.

Create a folder named "assets" at the same level as the application folder.
Create subfolders for js and css files.
Then, in the head section of your html, load your css like this:
PHP Code:
<link rel="stylesheet" href="<?= base_url('assets/css/name_of_stylesheet.css');?>" type="text/css" /> 
Reply


Messages In This Thread
CSS not working - by sacvill - 12-26-2018, 01:44 PM
RE: CSS not working - by ciadmin - 12-26-2018, 02:24 PM
RE: CSS not working - by Wouter60 - 12-27-2018, 02:52 AM
RE: CSS not working - by sacvill - 12-27-2018, 04:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB