Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 251369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:35:19+00:00 2026-05-11T21:35:19+00:00

I have some css files that are deployed in a feature scoped to site

  • 0

I have some css files that are deployed in a feature scoped to “site”

They contains some calls to images (also deployed by the solution) and so the paths are things like

background: #ffcc00 url(  '/sites/portal/Style Library/CSS/PersonalCenter.gif' ) repeat-x;

However I would quite like to be able to deploy to other “sites/XXXX” without having to change the url in all the css files!

I cannot just place them in the top level URL as it has its own styles etc and it would be confusing to mash styles from subs-sites into it.

Is there somewhere else I should be storing things like this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:35:19+00:00Added an answer on May 11, 2026 at 9:35 pm

    Thanks for your answers… In the end I have remembered about relative paths and

    background: #ffcc00 url(  '../CSS/PersonalCenter.gif' ) repeat-x;
    

    works just fine.

    The images/css files remain in the Style Library which has been useful to check CSS changes before committing them to the main feature and doing a ‘proper’ release of the solution

    Now why did I not just do that from the start !?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some css files that i need to use in RTL direction template.
I have a php script that uses some css/javascript tabs, they work on my
I have some html files with their own css. I want to use them
I have a number of .css files spread across some directories. I need to
I have some CSS that doesn't behave correctly with IE8. It works fine with
I have some CSS style that does not work in IE and that works
I have written some JS and CSS that allows certain columns to be flexible
I have some CSS code that hides the cursor on a web page (it
I have some large .png (.jpg, ...) files that require pretty much a full
I know that most CSS codes go under app/assets/stylesheets, but I have some snippets

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.