I always use an absolute path to the CSS and I never have these kind of problems with any browser
<link rel="stylesheet" type="text/css" href="http://localhost/jaybonnevie.ca/assets/css/site.css" />
you have to pass the baseUrl to the view. In the view file it would look like this
<link href="<?php echo"$base_url" ?>assets/css/tata.css" rel="stylesheet" type="text/css">
I always assign the baseUrl in a model ,the value is initially defined in your
/system/application/config/config.php
In a controller you just need
data['base_url' = $this->config->item('base_url')
In a model I in a data array (that’s one way anyway).
Lately I have been using an assets helper which is auto loaded. The path to the CSS is defined in the config.php file. Here is a snippet that is defining multiple stylesheets and javascript files using the helper.
/* style sheets */
echo style('reset');
echo style('text');
echo style('960');
echo style($css);
/* javascript */
echo jscript('prototype');
echo jscript('scriptaculous.js?load=effects');
echo jscript('lightbox');
echo style('lightbox');
notice that the last css file is defined in the controller and passed to the view, like this
The asset helper is part of a package submitted by Gandy Labs search for GandyXT, it’s just been updated with some cool stuff.
hope this helps
doodle