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 March 26th 2015, 2:32 pm

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 March 26th 2015, 6:44 pm; 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 March 26th 2015, 4:07 pm

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 : 13207
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 March 26th 2015, 6:42 pm

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 March 27th 2015, 3:57 am

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 : 51554
Reputation : 3524
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