Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think the correct solution is to use relative urls in the style sheet instead of absolute urls as you use now.</p> <p>Do note that relative urls in style sheets are relative to the location of the style sheet, not the current page being view by the browser.</p> <p>If you use ASP.NET Themes, you can put all your website graphics in a <code>/App_Themes/YourTheme/Images/</code> folder, and put your style sheet in the <code>/App_Themes/YourTheme/</code> folder.</p> <p>In your style sheet, you can then simply reference an image with <code>url(Images/img.gif)</code>, and it will work both online and in development.</p> <p>The you just need to assign your ASP.NET Theme to the page(s) you want, either through web.config's Pages section (<code>&lt;pages styleSheetTheme="Default"&gt;</code>) that will assign a theme to all pages on the website or through the &lt;%@ Page ... directive on each page.</p> <p>In general, you can do some really neat things with ASP.NET Themes and Skins, just take a look at the <a href="http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx" rel="nofollow noreferrer">ASP.NET Themes and Skins Overview</a> over at msdn.microsoft.com.</p> <p>There are a few issues to be aware of with Themes in ASP.NET, take a look at my post <a href="https://stackoverflow.com/questions/328763/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder">How to take control of style sheets in ASP.NET Themes with the StylePlaceHolder and Style control</a>, which explains and solves the issues I have come across so far.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload