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

Recommended Answers

All 2 Replies

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

Thank you for your help. Problem solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.