Can people test something out for me? Just seen on another forum a suggestion for an image replacement method that doesn't involve removing the text from the screen but also doesn't involve any empty tags:
h1 { width:150px; height:100px; overflow:hidden; } h1::before { content:url(image.gif); display:block; }
Now, when I test that out in Firefox, I can't actually turn the image off or disable it in any way which makes me wonder whether it is an accessible method. But maybe it's just my machine. :?
Image replacement method
FF/Mac allows me to turn off the image to see the text below.
Image replacement method
Must just be me then.
Image replacement method
I've used that method (example, check the h1). It won't work in IE and the height of the block element needs to match the height of the image. The complete method with IE support added is detailed at Fecklessmind.
Image replacement method
The complete method with IE support added is detailed at Fecklessmind.
That example's second method (the one using :before) actually says:
Sadly, this second example doesnât work in Firefox with images OFF, otherwise just fine.
Another example that it links to seems to though: http://www.jasonkarldavis.com/articles/gir/
Image replacement method
Yes, but it uses before with position:absolute; rather than before with display:block; Maybe it was the wrong link, but it is the one I remember using
I used similar styles to those you listed ...
#preg #banner h1:before { display: block; content: url(/images/preg.png); }
For the sample link I gave above, if I disable images via the web developer bar, the underlying text shows up just fine.
Image replacement method
Unlike T, I can't get FF/Mac to not display the image. :?:
Image replacement method
Unlike T, I can't get FF/Mac to not display the image. :?:
I was turning off the CSS styling not image loading.
Turning off image loading still shows the pic in FF/Mac which is strange.
Sorry for the confusion.