Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

displaying html markup under html alt of img

Hi;

I want to display a simple html markup (a div with some content of <p>) on image hover and alt seems not working properly. Any way to achieve this?

Note that i need to write the alt content in backend of .NET

 string rawimage =
                                                string.Format(
                                                    "<img data-index='{0}' src='images/category{0}.png' alt='{1}' style='{2}' />",
                                                    "1", myPopupText, "margin-right:4px");

Open in new window


Any way? Or a way with less pain?
SOLUTION
Avatar of Brandon Lyon
Brandon Lyon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Would make life SO much easier if they would ;)