Welcome Guest, Not a member yet? Register   Sign In
css
#1

[eluser]Unknown[/eluser]
how to add css file here?
please help me out.
#2

[eluser]bigtony[/eluser]
Put something like this in the HEAD portion of your HTML:
Code:
<style type="text/css">
  @import "<?php echo base_url().'assets/css/site.css'; ?>";
</style>
The above assumes your css is called 'site.css' and is in subdirectory 'assets/css/' where 'assets' is at same level as your 'system' directory. You can of course put it somewhere else if you want.
#3

[eluser]jedd[/eluser]
Or even using the CI function link_tag:

Code:
echo  link_tag('assets/stylesheets/COMMON.css');
#4

[eluser]bigtony[/eluser]
[quote author="jedd" date="1239638249"]Or even using the CI function link_tag:

Code:
echo  link_tag('assets/stylesheets/COMMON.css');
[/quote]
Somehow that function passed me by - much better than my suggestion, thanks!
#5

[eluser]Unknown[/eluser]
thanks !!




Theme © iAndrew 2016 - Forum software by © MyBB