EllisLab text mark
Advanced Search
     
how to add css to 2.1.3
Posted: 10 October 2012 01:14 AM   [ Ignore ]
Avatar
Joined: 2012-10-10
38 posts

i want to know how to add css on homepage in controller

 
Posted: 10 October 2012 03:43 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2012-10-10
2 posts

in your view, into <head> tags

<link rel="stylesheet" href="<?php echo base_url() ?>css/styles.css" type="text/css" media="screen"/> 

your css folder, must be in the root. NOT into application folder.

 

 
Posted: 10 October 2012 06:09 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2012-10-10
38 posts

<link rel=“stylesheet” href=“css/styles.css” type=“text/css” media=“screen”/> 
this is also working