+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / /Global and /Images question

/Global and /Images question

2 posts, 0 answered
  1. jon
    jon avatar
    3 posts
    Registered:
    27 May 2007
    01 Dec 2013
    Link to this post
    1. For a custom theme, can you include additional directory structure containing cross-referencing CSS files within /Global?

    Example:
    \Global
        \SharedCss
        \HeaderCss
        \MainCss
        \FooterCss

    2. For a custom theme, can CSS files inside /Global use the attribute url(../../Images/nav-arrow-blue.png) to specify the file of a background image? If not, how can image file urls be referenced?

    3. Can multiple levels of directories exist within the /Images directory of a theme?

    thanks,
    John
  2. Grisha 'Greg' Karanikolov
    Grisha 'Greg' Karanikolov avatar
    156 posts
    Registered:
    30 Nov 2016
    02 Dec 2013
    Link to this post
    Hi John,

    Let me address your questions in order below:
    1. Yes, absolutely. Any CSS files that you put in the /Global folder will be automatically loaded upon the initialization of your Sitefinity website. Any CSS files that you place in subfolders of that would need to be explicitly referenced through your .master file or page properties.
    2. Yes, absolutely. Example - in the Quantum demo website located here, we have referenced images from the Images folder via CSS using this:

    background-image: url(../Images/background.jpg);
    3. Yes, absolutely. Just make sure to reference the path correctly so that the images come up!

    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 Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered