Welcome Guest, Not a member yet? Register   Sign In
where to put style sheets and images??
#1

[eluser]dadamssg[/eluser]
where do you put your style sheets and how you do reference them to use in your views? i put my style sheet in my view folder and tried to call it like so with no avail

<link rel='stylesheet' type='text/css' href='silk.css' />
#2

[eluser]JHackamack[/eluser]
Linked stylesheets belong between the <head></head> tags in HTML.
#3

[eluser]WebsiteDuck[/eluser]
One way is to create a css folder in your root directory (alongside application, system, etc) and do this in your view:
Code:
<link href="<?php echo base_url(); ?>css/stylesheet.css" rel="stylesheet" type="text/css" />

If you want to put the css files in your view folder you can add the folders in like so:
Code:
<link href="<?php echo base_url(); ?>application/views/css/stylesheet.css" rel="stylesheet" type="text/css" />
#4

[eluser]JHackamack[/eluser]
I must have misread the context. I create a folder structure like such:

/Application/Resources/CSS
/Application/Resources/Images
/Application/Resources/Javascript

and store things there (where application is the app name)
#5

[eluser]dadamssg[/eluser]
awesome, thanks fellas




Theme © iAndrew 2016 - Forum software by © MyBB