You are here:  » CSS not applied to all pages


CSS not applied to all pages

Submitted by wimble on Sat, 2006-05-20 00:41 in

Not sure if this is an installation or customization problem.

My stylesheet is only being applied to index.php. None of the other pages get the styles, but the source code has the metatag calling my file, style.css.

I modified the header file so that style.css is the stylesheet.

Any ideas why this is happening?

EDIT: I found that if I turn off config_useRewrite in config.php, the stylesheet is applied to all the pages. Is there a way to make it work with it turned on?

2nd EDIT: I figured it out. I have to use an absolute URL for the stylesheet. I feel a little dumber for not having seen that earlier.

Thanks,
Chris

Submitted by support on Sat, 2006-05-20 00:52

Hi Chris,

That sounds like $config_baseHREF might be wrong, as it is prefixed to the CSS url in the header HTML file...

If you are installing into the root directory of your website it must be "/" rather than empty, otherwise it must be the full path beginning and ending with "/", for example "/shopping/".

Cheers,
David.