css background image URL to images folder

Posted by Community Admin on 04-Aug-2018 07:13

css background image URL to images folder

All Replies

Posted by Community Admin on 05-Feb-2015 00:00

I have a Folder Structure as it folows:
App_Data\Sitefinity\WebsiteTemplates\MySite\App_Themes\Mytheme\Images
I have images in the Images folder.
What should be the url in main main css file which is used as a theme for most of the pages.
I have tried different variants but unsuccessful.
The css file is located in:
App_Data\Sitefinity\WebsiteTemplates\MySite\App_Themes\Mytheme\Global

Posted by Community Admin on 05-Feb-2015 00:00

Hi Martin,

The path that you can use in your CSS shouldn't be any more complex than this:

div
background: url(../Images/logo.png) left center no-repeat;


Since your theme is in the MyTheme folder and both Images and Global are subfolders of that, this path should work for you within your CSS.

Hope that helps!

Regards,
Grisha 'Greg' Karanikolov
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 01-Jan-2018 00:00

I have a problem as well. How can I fix it?

http://webesser.com

This thread is closed