How to place text Over Image in SAPUI5?

How to place centred Text over image in SAPUI5? Something like this example in html: https://www.w3schools.com/css/tryit.asp?filename=trycss_transparency

1 answer

  • answered 2017-12-19 06:32 santhosh

    <html:div class="background">
       <html:div class="transbox">
            <html:p>
                 This is some text that is placed in the transparent box.
            </html:p>
      </html:div>
    

    xmlns:html="http://www.w3.org/1999/xhtml" add this name space to your view.

    • Use the same CSS given in w3school example you have used
    • This example is for XML view only