|
Posted by Lauri Raittila on 06/25/05 19:47
in alt.html, Els wrote:
> [Greg:]
> > What you're proposing would, in my case, put my content into CSS?
>
> If the image is content, it shouldn't be a background-image at all.
> People on text browsers wouldn't see it, nor see an alternative
> description throught alt text. So, if it really is content, and not
> decoration, you'll have to make it an <img src="..." alt="...">. But
> the fact that you're okay with clipping the right side of the image,
> my guess is that it is indeed decoration, and as such, not content.
Yes. but if it is content, you can easily clip it:
div {width:100%;overflow:hidden;min-width:Npx;}
<div><img alt="foo" src="bar"></div>
But I still have no clue what Greg wants to get... If it is to have
image, and style it so that it will be repeted to width of element, then
I would use
<div style="background:url(foo.png)"><image alt=foo src=foo.png></div>
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/buy-opera.html?AID=882173
Navigation:
[Reply to this message]
|