Re: [greenstone-users] Replace images with CSS

From Tod Olson
DateFri, 07 Nov 2003 10:54:46 -0600
Subject Re: [greenstone-users] Replace images with CSS
In-Reply-To (ca8efcaa52-caa52ca8ef-email-bigpond-com)
>>>>> "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.


Tod A. Olson <tod@uchicago.edu> "How do you know I'm mad?" said Alice.
Sr. Programmer / Analyst "If you weren't mad, you wouldn't have
The University of Chicago Library come here," said the Cat.