Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: Designing & Styling > Image not applied from css & master page

Image not applied from css & master page

  • Nrv avatar

    Posted on Jan 30, 2012 (permalink)

    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

    Reply

  • Victor Velev Victor Velev admin's avatar

    Posted on Feb 2, 2012 (permalink)

    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

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: Designing & Styling > Image not applied from css & master page