This is a migrated thread and some comments may be shown as answers.

[Solved] Combined CSS files and image references

3 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
eti
Top achievements
Rank 1
eti asked on 17 Sep 2009, 11:29 AM
Hi,

Is there any solution to handle images referenced in css files that are beeing served as combined. I really like the Combined feature, since i like splitting js and css files as much as possible to keep them organised, but since in the css files the images are usualy in the same folder and are referenced like url(image.png) , serving the file as /assets.axd and having the images in ~/Content/ does not work well.

Is there a known solution for this problem or maybe some suggestions ?

thanks,
eti

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Sep 2009, 07:20 AM
Hello eti eti,

Unfortunately this is a known bug of the CTP release. As a workaround you can modify your CSS so the background images are included from the Content folder:

Old:
url(Images/test.png)
New:
url(/Content/Images/test.png)

This bug will be resolved in the next release of the product.

Regards,
Atanas Korchev,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
eti
Top achievements
Rank 1
answered on 18 Sep 2009, 07:31 AM
Hi,

Good to hear that.

I would be nice if in the end it will work regardless of the folder the css files and images are in, and even combining css files from different folders... but then you would have to alter the paths of the images in the combined css witch might be tricky.

Anyway, good job on the Extensions.
0
Atanas Korchev
Telerik team
answered on 18 Sep 2009, 07:36 AM
Hello eti,

Yes, the final goal is to be able to combine files from multiple locations and fix the image path in the CSS files. We will make sure it works as expected for the final release.

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
eti
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
eti
Top achievements
Rank 1
Share this question
or