Re: [greenstone-devel] Re: Replace images with CSS

From Stephen De Gabrielle
DateMon, 10 Nov 2003 10:54:56 +0900
Subject Re: [greenstone-devel] Re: Replace images with CSS
Thanks for the tip; I'll be using both title and alt for old browsers.

I'll have to try it out.

Type: text/plain

spdegabrielle wrote:
> (switched list!)
> I've given up on the navigation buttons - it can be done but there is(was?) some hardcoded <nobr> tags that make things difficult - I haven't checked since 2.38 so maybe these are gone - I'll have to try again.
> This is probably a waste of time - I want text for usability. As the gif is compressed and quick to render (probably quicker and more reliable than the style sheet) - all I should do is include an alt tag.
> So I'd like to submit my change to the Greenstone Archives collection definition in the macro files;
> Greenstone Archives collection {
> <img src="/gsdl/collect/gsarch/images/gsarch.gif" border=0 alt="Greenstone Archives collection">}

just a quick note that you might be better off using title="..." instead
of alt="...". Newer versions of the html/xhtml standards suggest this, I
think, and standards-compliant browsers like mozilla will make good use
of them. You can give title tags to lots of html objects like form entry
fields, links and images, and the browser will pop-up that text when the
mouse is over it. The image alt tag is generally only used when the
image can't be loaded.

John McPherson