The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

The <img> alt Attribute not displaying.

View previous topic View next topic Go down

Solved The <img> alt Attribute not displaying.

Post by roCrox on 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
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 on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

Post by roCrox on 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
Forumember

Male Posts : 83
Reputation : 20
Language : English

Back to top Go down

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

Post by SLGray on March 27th 2015, 3:57 am

Topic solved and archived


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


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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