|
Boost : |
From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2004-12-14 05:33:04
Rene Rivera <grafik.list_at_[hidden]> writes:
> Beman Dawes wrote:
> > Linux/Konqueror -- Search did not render Google logo, instead a button with
> > 'Google Search' (doesn't quite look right).
>
> Not all browsers support enough of CSS to change the button image, but they
> should fall back to showing the button label. How does it not look right? Is
> it too small? (I just changed it so for a possible fix in this case) Is the
> text messed up somehow?
Having images on web-site buttons is awkward; you need to provide alternate
text for those people who don't have browsers capable of rendering the image,
but this needs to be hidden if the browser is showing the image. Setting the
indent to -9000px (as you have) works, *except* if you have a browser
*capable* of showing the image (e.g. Firefox/Win2k), but with image viewing
disabled --- in which case you don't get anything displayed at all.
In the past I have given up trying, and just had a text button. I thought
about maybe having a block with a background image directly on top of a text
button. That way, if the image isn't visible (for *any* reason), then the text
shows through. I don't know how easy that is to arrange, though; I didn't get
as far as trying it.
In any case, the Google button does nothing to indicate that it is a button
(unless you click on it): it has no border, it doesn't highlight when the
mouse goes over it, and the cursor doesn't change either. (Tested in
firefox/win2k)
Anthony
-- Anthony Williams Software Developer
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk