Welcome Guest, Not a member yet? Register   Sign In
Stylesheet
#4

[eluser]daulex[/eluser]
[quote author="Jesse2303" date="1214261969"][quote author="Dagobert Renouf" date="1214261759"]I could be wrong, but with an absolute path like this, the only thing that can block access to your css file is a wrong path, so check it twice.

Here's how I did it in case that's a strange problem and your path is good :


Code:
<?php echo link_tag('system/application/views/stylesheet.css'); ?>
You need the HTML Helper for this.[/quote]

It works, Thanks[/quote]
the full path is right, as it says in the manual: dont use relative url's, so for the sake of it, I advise you to use <?=base_url()?> or <?=site_url()?> like this:

Code:
<link rel="stylesheet" type="text/css" href="<?php echo site_url(); ?>css/style.css" media="screen, print" />

and it returns: (aso is down Sad ) it returns something on the lines of:
Code:
<link rel="stylesheet" type="text/css" href="http://host/css/style.css" media="screen, print" />


This may be long and maybe even useless, but an absolute url makes sure that the css always loads Big Grin


Messages In This Thread
Stylesheet - by El Forum - 06-23-2008, 11:43 AM
Stylesheet - by El Forum - 06-23-2008, 11:55 AM
Stylesheet - by El Forum - 06-23-2008, 11:59 AM
Stylesheet - by El Forum - 06-23-2008, 04:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB