CSS on a subsite not applied in FF and Chrome, works in IE

Discussion in 'HTML & Website Design' started by ravie, Jun 30, 2009.

  1. #1
    Hello,
    I have come across a strange issue. We are running MOSS (MS Office Sharepoint Server) public sites (pulishing sites).
    The structure is following:
    www(dot)navertica(dot)biz - CZ page - this works OK. I have a Master page saying

    <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(dot)navertica(dot)biz/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
     
    ravie, Jun 30, 2009 IP
  2. KnuTz

    KnuTz Well-Known Member

    Messages:
    169
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #2
    you should be avoiding spaces on your folder try
    <style type="text/css">
    @import url(/en/Style%20Library/navertica.css);
    </style>

    or

    <style type="text/css">
    @import url(./Style%20Library/navertica.css); (the style library is in each site)
    </style>
     
    KnuTz, Jun 30, 2009 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    I assume this is fixed? I don't see the problem but, as Knutz said, spaces in URLs is invalid.
     
    drhowarddrfine, Jun 30, 2009 IP