You are here: Re: css bug in IE: circumvention, anybody? « HTML « IT news, forums, messages
Re: css bug in IE: circumvention, anybody?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация