0

Hi,

I have to zoom a div. an image is placed as div
background using css. while doing zoom in, what i did
is increased width and height of div by 25px, but image
which placed as div background is not streching.
Also, when i zoom it, the text placed in its inner div
should also zoom.

How this can be achieved in javascript. It should run in IE6, IE7,FF1,FF2 and FF3

Any help can be greatly appreciated.

Thanks in advance

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by sunilsinha
0

Sunilsinha,

Background images can be made to "tile" but not stretch (at least not easily).

You ned to use a standard <img> tag then change its width and height dynamically in Javascript. You don't need a <div> wrapper, but there's no harm (with default div styles).

Page will "reflow" when your img is resized.

Hope this helps.

Airshow

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.