The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The <img> alt Attribute not displaying.

3 posters

Go down

Solved The <img> alt Attribute not displaying.

Post by roCrox Thu 26 Mar 2015 - 9:32

Is the alt="Thanks!" placement wrong?

viewtopic_body
Phbb2

Code:
<div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}"><img src="http://i47.servimg.com/u/f47/11/77/85/44/thanks10.gif"
style="filter:alpha(opacity=100); opacity: 0.5;"
onmouseover="this.style.opacity='1';
this.filters.alpha.opacity='100';"
onmouseout="this.style.opacity='0.5';
this.filters.alpha.opacity='100'" alt="Thanks!"/></a></div>


Last edited by roCrox on Thu 26 Mar 2015 - 13:44; edited 1 time in total
roCrox
roCrox
Forumember

Male Posts : 83
Reputation : 20
Language : English

Back to top Go down

Solved Re: The <img> alt Attribute not displaying.

Post by Ange Tuteur Thu 26 Mar 2015 - 11:07

The ALT attribute contents will only display if the image is unable to load, broken, or there's not a SRC attribute. Are you trying to display a tooltip ? If so, add title="Thanks!" instead
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: The <img> alt Attribute not displaying.

Post by roCrox Thu 26 Mar 2015 - 13:42

Ange Tuteur wrote:The ALT attribute contents will only display if the image is unable to load, broken, or there's not a SRC attribute. Are you trying to display a tooltip ? If so, add title="Thanks!" instead

Aaah, thanks for explanation I didn't realize the proper usage before and was not aware of title attribute.
Well this is solved - it works.

Thanks again Ange Tuteur.

roCrox
roCrox
Forumember

Male Posts : 83
Reputation : 20
Language : English

Back to top Go down

Solved Re: The <img> alt Attribute not displaying.

Post by SLGray Thu 26 Mar 2015 - 22:57

Topic solved and archived


The <img> alt Attribute not displaying. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51513
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum