Help get this topic noticed by sharing it on Twitter, Facebook, or email.

How to insert image via css in popup?

Hi Crossrider Team,

Please tell me how to insert image via css as background url.

Because when we use image then IE is generating problem others are fine.

Please tell me.
1 person has
this question
+1
Reply
  • Hello Anil,

    I presume you are referring to an image from your resources. Hence, currently for IE due an issue we are aware of with using CSS to insert an image, we recommend dynamically adding the element and inject the image using jQuery from within your popup.hml file. For example:
    function crossriderMain($) {
    $('<a id="myAnchor"></a>')
    .css('background-image', appAPI.resources.get('images/myImage.png'))
    .appendTo('body');
    }
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited