Welcome Guest, Not a member yet? Register   Sign In
Confounded with CSS file!!!
#1

[eluser]puddles[/eluser]
I've done a lot of reading of posts in this forum on how to locate your css file, and have tried each method. For the life of me, I can't seem to get it working though!

Here is the location of my css file which I would like to call in a header view:

xampp
-> htdocs
-> codeigniter
-> system
-> assets
-> css
-> screen.css

Here is my base url from my config.php:

$config['base_url'] = "http://localhost/codeigniter/";

Here is my controller code
Code:
<?php

class Welcome extends Controller {

    function Welcome()
    {
        parent::Controller();    
    }
    
    function index()
    {    
        
        $this->load->view('header');
        $this->load->view('welcome_message');
        $this->load->view('footer');
    }
}


Here is my header view:
Code:
<html>

<head>
<title>Welcome to Hockeypool Headquarters</title>

<style type="text/css">

    <?php echo link_tag('assets/css/screen.css'); ?>


</style>
</head>

No matter what I seem to do, I'm not able to get the css to apply to the welcome_message.php page.

When I look at the rendered page source, I see the following in the head section:

Code:
<style type="text/css">

    <link  href="http://localhost/codeigniter/assets/css/screen.css" rel="stylesheet" type="text/css" />

</style>



Can anyone point out where I've gone wrong?


Messages In This Thread
Confounded with CSS file!!! - by El Forum - 11-25-2009, 03:25 PM
Confounded with CSS file!!! - by El Forum - 11-25-2009, 05:47 PM
Confounded with CSS file!!! - by El Forum - 11-25-2009, 06:37 PM
Confounded with CSS file!!! - by El Forum - 11-25-2009, 06:42 PM
Confounded with CSS file!!! - by El Forum - 11-26-2009, 12:38 AM
Confounded with CSS file!!! - by El Forum - 11-26-2009, 07:49 AM
Confounded with CSS file!!! - by El Forum - 11-27-2009, 08:31 AM
Confounded with CSS file!!! - by El Forum - 11-27-2009, 01:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB