none
How to have an image background INSIDE of a CEWP? (Not page background)

    Question

  • Hi 

    How to have an image background INSIDE of a CEWP? (Not page background)

    Thanks.

    Tuesday, January 10, 2017 1:50 AM

Answers

  • Hi ran- per Rajesh's suggestion, use the following code:

    <style>
    
        #image {
            background-image: url("YOUR IMAGE URL")
    }
    
    </style> 
    
    <div id="image">
    </div>


    cameron rautmann

    • Marked as answer by ran009 Wednesday, January 11, 2017 12:43 AM
    Tuesday, January 10, 2017 7:56 PM

All replies

  • Use DIV in the CEWP and then set the css style background-image with the url of the image.

    ---
    Rajesh
    rjesh.com| @rjesh
    You don't need to buy me a beer, if helpful just smile, vote, and mark it as answer.

    Tuesday, January 10, 2017 2:10 AM
  • Hi ran- per Rajesh's suggestion, use the following code:

    <style>
    
        #image {
            background-image: url("YOUR IMAGE URL")
    }
    
    </style> 
    
    <div id="image">
    </div>


    cameron rautmann

    • Marked as answer by ran009 Wednesday, January 11, 2017 12:43 AM
    Tuesday, January 10, 2017 7:56 PM