Previous Message
Next Message

RE: [css-d] auto resizing background-image?

Sent by Simon Jessey on 11 February 2003 12:12


I do not see how. An alternative (and this will depend on what you are
trying to achieve) might be to make the image larger than the containing
block and then center it both vertically and horizontally. That way, when
the block is enlarged, extra image will be revealed.

I think someone suggested that some kind of background-stretch property
might be added to CSS3, but I cannot remember the details.

Simon Jessey
w: http://jessey.net/blog/
e: [EMAIL-REMOVED]


>
> Is it possible to have a background-image automatically resize to
> (flexible)
> size of the element it is applied to?
Previous Message
Next Message

Message thread: