Can't get background image to appear using EditorBodyStyle

Last post 03-15-2011, 1:31 AM by ssllogic. 4 replies.
Sort Posts: Previous Next
  •  03-13-2011, 2:12 PM 66635

    Can't get background image to appear using EditorBodyStyle

    I want to make a background image appear in the background. Is this possible? If so, what is wrong with this code? The other elements work, but not the background.
     

     Editor1.EditorBodyStyle = "font-family:Verdana; padding: 20px; background-image:url('/images/Top.png')"

     
    Thanks! 



     
  •  03-13-2011, 10:23 PM 66636 in reply to 66635

    Re: Can't get background image to appear using EditorBodyStyle

    Hi TimBurns,
     
    Please make sure that you write the correct image file path,
    if your web site is a virtual directory application,
    you should add  the virtual directory application name to the background-image-url attribute
     
    background-image:url(/APPLICATION  NAME/images/26_b.jpg)
     
     
    Regards,
    Jeff 
  •  03-14-2011, 11:56 AM 66644 in reply to 66636

    Re: Can't get background image to appear using EditorBodyStyle

    Thanks! You're right. My path was faulty. Working now.
  •  03-14-2011, 11:56 AM 66645 in reply to 66636

    Re: Can't get background image to appear using EditorBodyStyle

    Thanks! You're right. My path was faulty. Working now.
  •  03-15-2011, 1:31 AM 66665 in reply to 66636

    Re: Can't get background image to appear using EditorBodyStyle

    Jeff:
    Hi TimBurns,
     
    Please make sure that you write the correct image file path,
    if your web site is a virtual directory application,
    you should add  the virtual directory application name to the background-image-url attribute
     
    background-image:url(/APPLICATION  NAME/images/26_b.jpg)
     
     
    Regards,
    Jeff 
     
    Hey Thanks.. I was searching for the answer of the same question.. Really Its not a big problem.. But good observation is required! I checked it thousand times but didnt even noticed this small thing! :( Anyways... Thanks a lot
     

    SSL Certificates | Code Signing Certificates | SSL
View as RSS news feed in XML