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

Forums / Designing with Sitefinity / mapping css and images

mapping css and images

3 posts, 0 answered
  1. Steve Mustafa
    Steve Mustafa avatar
    9 posts
    Registered:
    13 May 2010
    29 Jun 2010
    Link to this post

    Hi,

    I've downloaded Sitefinity (Community Edition, 3.7) and we're setting up a site as part of our evaluation (jnrcs.org).

    Installation is dead beat simple, and creating a master page on VS is easy, but for the life of me, and I have struggled with this now for a few hours, I can't figure out how to properly map/link stylesheets and images!

    Applying the theme by its name, after uploading it to the App_Themes folder is not enough, ditto the images.

    I'm stumped.

    TIA

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Jun 2010
    Link to this post
    Hi Steve Mustafa,

    In your Theme folder you can create stylesheet that gets the images from an folder - say images located on the same level as the stylesheet

    p.logo
    {
        background: transparent url(img/logo.gif) no-repeat 0 0;
        color: #fff;
    }

    If you are referencing the images from the master page you can use the code below

    <img src="~/Images/...." runat="server" alt="" />

    You might find this post useful - ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Steve Mustafa
    Steve Mustafa avatar
    9 posts
    Registered:
    13 May 2010
    29 Jun 2010
    Link to this post

    See, the problem is having the master page reference the stylesheet correctly.  I've tried uploading it to the App_Themes folder and even in an act of desperation, created a new folder (root level) and placed it there and referenced it directly. Still no go.

    [Edit]

    As is typical of development on any platform, after having sent out my pleas for help, it magically works perfectly on the next thing I try!

    Many thanks Ivan for helping out.

Register for webinar
3 posts, 0 answered