I recently discovered a method to title image files in Opera. I was experimenting with CSS generated content in regards to the <title> element in various browsers, and discovered that as long as the <head> and <title> elements are not display: none
, generated content applied before and after the <title> element is added to the page title itself in Opera. It was obvious to me that I should combine this with HTTP Link: headers containing stylesheets, as to make it possible to modify the title of usually non-titleable media, such as images, plain text, audio, and video.
In this demo, the following CSS rules are applied in Opera.
head, title { display: block; width: 0; height: 0; visibility: hidden; } title::before { content: "Just an image — "; } |
Thanks. I shall use.
Nice trick…