Welcome Guest, Not a member yet? Register   Sign In
including CSS - failure :(
#1

[eluser]Krystian[/eluser]
Hello all, I`m Kris, and I got a problem with including CSS styles into my site.
Further more if I couldn`t put css then I could not put an img file and so on and so on.
Basically, I have

Code:
$config['base_url'] = "http://127.0.0.1/KC_ciTraining/";

I also create a CSS directory i a root direcorty as above

-kc_ciTraining
-css
- style.css
-system
- application
- cache
.
.
.
.
I included my css file like this

Code:
<link ref="stylesheet" href="<?php echo base_url(); ?>css/style.css" type="text/css" >

When I open my site it doesn`t work at all. When I look at site source I get

Code:
<link ref="stylesheet" href="http://127.0.0.1/KC_ciTraining/css/style.css" type="text/css" media="all" />

when I put css source directly into my view - works fine. Why? what should I do? Where to put css directory and css file? and finally where to put img direcory.

regards kris
-user guide


Messages In This Thread
including CSS - failure :( - by El Forum - 11-30-2009, 03:56 PM
including CSS - failure :( - by El Forum - 11-30-2009, 04:17 PM
including CSS - failure :( - by El Forum - 11-30-2009, 04:27 PM
including CSS - failure :( - by El Forum - 11-30-2009, 04:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB