Fire Fox Browser

  • Dodger_2
  • Novice
  • Novice
  • User avatar
  • Joined: Dec 13, 2007
  • Posts: 31
  • Loc: Indianapolis, Indiana
  • Status: Offline

Post May 12th, 2008, 7:19 am

My alt tags text on my web sites are not appearing on mouse hover in FF. The appear just fine in IE7. Any direction on why this occurs would be appreciated.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 12th, 2008, 7:19 am

  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post May 12th, 2008, 7:32 am

alt tags are not meant to be displayed. They are for screen-readers and stuff; IE shows them however. If you want the same effect in FF then you need to use the "title" attribute.

Code: [ Select ]
<img title="foobar" src="foo.png" alt="foobar" />
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Joined: Oct 02, 2007
  • Posts: 575
  • Loc: Phoenix, AZ
  • Status: Offline

Post May 12th, 2008, 7:33 am

As usual, that's because Firefox interprets the HTML correctly. The alt attribute is only supposed to display, when the image can't be found. For the popup text to appear, use the title attribute:
Code: [ Select ]
<img src="images/pic.jpg" alt="Picture of something" title="This is a picture of something"/>
phoenix web design
  • Dodger_2
  • Novice
  • Novice
  • User avatar
  • Joined: Dec 13, 2007
  • Posts: 31
  • Loc: Indianapolis, Indiana
  • Status: Offline

Post May 13th, 2008, 5:17 am

Thanks for the replies.
  • choyon
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 19, 2008
  • Posts: 19
  • Status: Offline

Post May 15th, 2008, 1:22 pm

thnx

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 98 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.