[greenstone-devel] Re: Replace images with CSS

From spdegabrielle
DateSun, 09 Nov 2003 22:45:08 +0900
Subject [greenstone-devel] Re: Replace images with CSS
(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">}


> 1. Replace images with CSS (spdegabrielle)
> 5. Re: Replace images with CSS (Tod Olson)
> >>>>> "S" == spdegabrielle <spdegabrielle@telstra.com> writes:
> S> Image generation in greenstone has been frustration me for a while;
> S> Another reason is quicker downloads for the remote/slow connection
> S> users who an important user group for me.
> S> This a go at a solution in CSS for the big collection name image
> S> seen at the top left when searching or browsing:
> Excellent! I'd been toying with a similar idea for the navigation
> buttons, to ensure a more uniform use of fonts.
> S> I am still getting some weird flickering caused by the image being
> S> reloaded on rollover - and I don't know what is causing it. I think
> S> it is my stylesheet but can't be sure. [...]
> S> I have attached the 1 pixel high image file (in standard greenstone
> S> green) 1.5.gif (lives in gdsl/images/ )
> We've seen problems with 1 x 1 pixel background images in other
> web-based applications, including painfully slow rendering on some
> platforms. You might drop in a 10 x 10 solid image and see whether
> that helps.
> Otherwise, you might try setting the background through the style
> sheet, without the image. Might get variable results on different
> browsers, though.