Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Offline
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
Offline
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
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>
float: left;
in the style attribute should be located in the CSS file.- For the image ID you don’t need a custom field, for there is the article image field.
- 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
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