Hi
I want to resize a <div> layer like if I click on a link or an image the <div> layer will resize, from like width="200" to width="300". Do you know any way of doing this?
thanks
CS
Printable View
Hi
I want to resize a <div> layer like if I click on a link or an image the <div> layer will resize, from like width="200" to width="300". Do you know any way of doing this?
thanks
CS
That'll require the use of JavaScript; namely, the OnClick handler, to change the width style of the object.
You'll need to specify an object ID for your DIV:
And you can access the style of that DIV through JavaScript handlers like onClick, onMouseOver, etc.Code:<div id="myDiv">....</div>
In this case, the property to change would be 'myDiv.style.width'. Search on www.google.com if you can't put it together. If you really have a hard time drop another msg back here.
Happy coding :)