Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-10-29 17:50:25

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

image title not showing on hover in firefox

Anyone ever encounter this?
In fire fox my image title boxes are just yellow squares about 5 × 10 px. There is no text in them.
The only thing i can think of is that the image title’s were inadvertently targeted in the css but i don’t know.
Works fine in safari…


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2011-10-29 17:56:41

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: image title not showing on hover in firefox

You mean tooltips? We can’t really help that much without knowing the site. Tho, it may happen if you have an open HTML tag attribute, or unclosed container that has a title set.

Offline

#3 2011-10-29 18:33:05

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: image title not showing on hover in firefox

Hi Jukka,

The site in question is the link in my signature. Any page really but the homepage is a good example, all the thumbnails….

The code for the tool tips was working before.

Here is an instance of it:

<li style="float:left; ">
 <a href="<txp:permlink />" title="<txp:title />">
<img src="<txp:site_url />
images/<txp:custom_field name="Image-ID" />t.jpg" 
alt="Picture of <txp:title />" /></a>
</li>

its a bad hen that wont scratch itself.
photogallery

Offline

#4 2011-10-29 19:26:24

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: image title not showing on hover in firefox

Tooltips show up just fine for me on latest stable Firefox on Mac, but there are validation errors on your website.

Offline

#5 2011-10-29 19:32:10

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: image title not showing on hover in firefox

thats funny tool tips don’t show up for me in fire fox…. But good to hear the do for you.
I haven’t validated the site yet, I need to finish off the redesign first.
I don’t even want to know what the validation report looks like right now, i would be afraid to look at it!


its a bad hen that wont scratch itself.
photogallery

Offline

#6 2011-10-30 00:15:44

jacknails
Member
From: Israel
Registered: 2009-12-12
Posts: 17
Website

Re: image title not showing on hover in firefox

It looks to me like some thumbnails have a title set and some don’t.
As far as I know, Firefox will show a tooltip if you have a title set for the image, but it won’t show the alt text in a tooltip.
So you probably want something like this:
<img src="01.jpg" alt="text" title="text">

Offline

#7 2011-10-30 01:32:09

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: image title not showing on hover in firefox

I suppose you mean Donegal Image.

Your code example could be simplified:

<li><a href="<txp:permlink />" title="<txp:title />"><txp:article_image thumbnail="1" /></a></li>
  1. float: left; in the style attribute should be located in the CSS file.
  2. For the image ID you don’t need a custom field, for there is the article image field.
  3. The tooltip shows the title attribute of the anchor tag!

Last edited by GugUser (2011-10-30 02:03:01)

Offline

#8 2011-10-30 01:44:02

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: image title not showing on hover in firefox

kvnmcwebn schrieb:

I don’t even want to know what the validation report looks like right now, i would be afraid to look at it!

Amazing attitude. You could learn a lot from it.

Offline

#9 2011-10-30 10:48:24

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: image title not showing on hover in firefox

jacknails wrote:

It looks to me like some thumbnails have a title set and some don’t.
As far as I know, Firefox will show a tooltip if you have a title set for the image, but it won’t show the alt text in a tooltip.
So you probably want something like this:
<img src="01.jpg" alt="text" title="text">

Thanks Daniel, I’ve put the title in the image tag but it’s still not working. I’ll fool around with it some more.

Last edited by kvnmcwebn (2011-10-30 10:50:27)


its a bad hen that wont scratch itself.
photogallery

Offline

#10 2011-10-30 14:35:44

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: image title not showing on hover in firefox

GugUser schrieb:

3. The tooltip shows the title attribute of the anchor tag!

Offline

Board footer

Powered by FluxBB