anam
anam

Reputation: 3913

show image instead of Alt text if image src not present

I am using imageFlow as a base . but my problem is i want to show text on top of image this i tried doing but JS file don't Accept any div around img tag.

       <img src="" alt=""   >

is there any way to show alternate image if image src not able .

Upvotes: 0

Views: 1665

Answers (2)

Manish Jangir
Manish Jangir

Reputation: 505

<img src="" alt="" style="postion:relative;">
<div style="postion:absolute;">Your image alt text</div>

Set the top,left,bottom and right postion of your div according to where you want to show the text.

Upvotes: 0

Jaya Mayu
Jaya Mayu

Reputation: 17247

You can do as below

 <div style="background: transparent url("tempballoon.png") no-repeat left top; font-size: 32px;width: 100%; height: height:[height of image]">
  Test
 </div>

Or can build as given in this link

Upvotes: 1

Related Questions