Forum Moderators: not2easy
<style type="text/css">
@import url(/Style Library/navertica.css);
</style>
and it works in all browsers.
In subsequent sites, i. e. English, under www.example.com/en, I have the adjusted statement:
<style type="text/css">
@import url(/en/Style Library/navertica.css); (the style library is in each site)
</style>
And that is the difference - the subsite, in Internet Explorer, works (you may even try ), but in other browsers, the css file is not applied at all.
I suppose there would be some error in the css or in relative adressing, but can not figure it out. Any help would be GREATLY appreciated
Thanks a lot!
Marek
[edited by: SuzyUK at 7:47 am (utc) on June 30, 2009]
[edit reason] please use example.com [/edit]
I know you say there is a Style Library directory in each site, but have you actually tried to reach it direct?
www.example.com/en/Style Library/navertica.css
(substitute example.com) for your site
if you can reach it I would suggest removing the space in the directory name [google.com] as they can cause many strange issues.. not saying it will fix this but would urge you to try it if you can.
then let us know
Suzy
hmm weird, I wasn't convinced of that anyway ;) - No I don't think it will help to post the CSS, well not all of it, perhaps just the first 10-12 lines.. if the problem is simply the pages not picking up the whole sheet.
You could, in your subdirectory Style sheet, add a single temporary rule at the top of the sheet.. e.g. body {background: #f00;} - this will help you see as soon as any rules, or the sheet is being picked up
What to try is to validate your HTML for that subdirectory page, also validate the CSS.
also I wonder if it could be related to: this recent post [webmasterworld.com]
<!--
<style type="text/css">
/**** Overriding styles for branding ~ located in the CSSSTyleLibrary ****/
@import url(/en/Style library/navertica.css);
</style>
-->
<link rel="stylesheet" href=/en/Style%20Library/navertica.css type="text/css" media="screen" charset="utf-8">
I don't know how to thank you enough, you saved my life :)
If you need to use them, do replace them with %20 in any URL.
If you use them in CSS url() construct, make sure to use the (optional) quotes around the string, escape it with a backslash or URL encode it.
See also: [w3.org...]
My bottom line: don't use spaces in filenames (or directory names).