Results 1 to 3 of 3

Thread: Aggregate style sheets breaks CSS images

  1. #1
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Aggregate style sheets breaks CSS images

    I'm having a strange issue with aggregating my stylesheets. I have seen that other people have had this problem and that it is usually due to them missing out double quotes on image paths. I have double checked all my CSS images and they all have the quotes surrounding the path.

    Here is an example of one:

    Code:
    background-image:url("tl_files_2/images/system/artwork/header.png");
    When the stylesheets are merged this should read:

    Code:
    background-image:url("../../tl_files_2/images/system/artwork/header.png");
    But the links are not being updated. Are there any other reasons apart from the double quotes issue that might cause this? Thanks.

  2. #2
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

    Default Re: Aggregate style sheets breaks CSS images

    Yes... If your CSS is in the "Custom code" area it will not do this.

    Also, not sure if it may have something to do with the tl_files_2 folder you are referencing, but if it doesn't match your settings that could possibly be the reason as well.

  3. #3
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Re: Aggregate style sheets breaks CSS images

    It was the tl_files_2 that was causing the problem. I moved my image files back under tl_files and it all worked fine. I've used this structure on other sites and never had this problem though, strange.

    Thanks for the help!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •