Re: Out-of-date CSS person needs up-to-date CSS advice!!
I wrote:[color=blue][color=green]
>> In the real world, content images should use the IMG element.
>> Content images that are pictures of text should provide the text in
>> the ALT attribute.[/color][/color]
Alan J. Flavell <flavell@ph.gla .ac.uk> wrote:[color=blue]
> Well, yes; but, on the other hand, there's a body of informed advice
> which says that making images that are nothing more than images of
> text is poor practice. Better would be to include the text itself in
> the HTML with appropriate markup (and if you don't like the visual
> result, to propose something via the stylesheet to modify the visual
> result in appropriate presentation situation/s).[/color]
Yes, the ideal is to use real text, and to style it with CSS.
But image-replacement hacks aren't styling real text with CSS; they're
hiding the real text and replacing it with an image of text.
If these hacks were styling the real text, then users could select the
styled text and copy-paste it somewhere. Or I could add another H3 element
to the CSS Zen Garden boilerplate HTML, without having the new H3 element
look different from all the original H3 elements that are otherwise similar
to my new one. Or I could edit the text of an H3 element without mucking
with the style sheet or its images.
IMHO, if you're going to replace the real text with an image, then you
should be honest about it and use an inline image with appropriate ALT
text. But the artificial requirements of the CSS Zen Garden project
prohibit that.
--
Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/
"The early bird gets the worm, but the second mouse gets the cheese."
I wrote:[color=blue][color=green]
>> In the real world, content images should use the IMG element.
>> Content images that are pictures of text should provide the text in
>> the ALT attribute.[/color][/color]
Alan J. Flavell <flavell@ph.gla .ac.uk> wrote:[color=blue]
> Well, yes; but, on the other hand, there's a body of informed advice
> which says that making images that are nothing more than images of
> text is poor practice. Better would be to include the text itself in
> the HTML with appropriate markup (and if you don't like the visual
> result, to propose something via the stylesheet to modify the visual
> result in appropriate presentation situation/s).[/color]
Yes, the ideal is to use real text, and to style it with CSS.
But image-replacement hacks aren't styling real text with CSS; they're
hiding the real text and replacing it with an image of text.
If these hacks were styling the real text, then users could select the
styled text and copy-paste it somewhere. Or I could add another H3 element
to the CSS Zen Garden boilerplate HTML, without having the new H3 element
look different from all the original H3 elements that are otherwise similar
to my new one. Or I could edit the text of an H3 element without mucking
with the style sheet or its images.
IMHO, if you're going to replace the real text with an image, then you
should be honest about it and use an inline image with appropriate ALT
text. But the artificial requirements of the CSS Zen Garden project
prohibit that.
--
Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/
"The early bird gets the worm, but the second mouse gets the cheese."
Comment