|
Posted by Andy Dingley on 10/02/06 10:14
JWL wrote:
> Anyway, using a CSS layout, I left-floated the four divs and placed
> <img> tags in them to display the images. But now I'm thinking: would it
> be better to place background images in the divs using CSS?
The fact that you can place background images through CSS is no
indication that you ought to. The notion that you can apply CSS
rollovers to them isn't a good recommendation either.
CSS only supports "background" images, not foreground. The useful
behaviours that emerge from this (such as rollovers) don't change the
fact that it's primarily a background feature. It's definitely a
mistake to start treating this as a primary way of distributing real
content. Stick with <img>.
For one simple example, general default behaviour on printing is to not
print CSS background images. This is such a useful feature (because of
excess eye candy) that it's impractical to change this setting. So if
you want your images to be printable, then don't stick them through CSS
backgrounds.
Navigation:
[Reply to this message]
|