More in this section
Forums / Designing & Styling / Image not applied from css & master page

Image not applied from css & master page

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Nrv
    Nrv avatar
    20 posts
    Registered:
    16 Jan 2012
    30 Jan 2012
    Link to this post
    Hello everyone,
    I am unable to apply images to my pages from master page & css also .... I tried everything but nothing worked....

    <img src="../images/skype.png"

    alt="Skype" class="abc" />

    Please suggest what should i do ??
    Regards,
    Nrv

  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    02 Feb 2012
    Link to this post
    Hello Nrv,

    Have you tried adding runat = "server" to the image tag? Also make sure that you do not have an external directory called images, because the folder is by default reserved for Sitefinity.

    The following code works perfectly when inserted in a master page:

    <img src="myimages/smile.jpg" alt="Smile" class ="abc" runat ="server" />


    Greetings,
    Victor Velev
    the Telerik team
    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