inline style is not applying in image tag

I am getting html response with inline style from the service. below is the response value im getting.but that inline style is not applying.

<img src="IONSWeb/resources/images/SiteNew.png" ; style="position:absolute;left:590;top:160;width:100;height:80">

when i inspect that element in browser, it is showing below output

enter image description here

Answers 1

  • you are missing px

    <img src="IONSWeb/resources/images/SiteNew.png" style="position:absolute;left:590px;top:160px;width:100px;height:80px;">

Related Articles