View Full Version : New to CSS - Need urgent reply

10-17-2005, 07:29 PM
I have a scrollingtable created for a jsp.

I want this to be removed dynamically on click of a button. How to achieve this.

I have a div tag for the following:

#scrollingTableContainer {
border: 1px solid #ccc;
width: expression(window.screen.availWidth*0.90);
overflow: scroll;

as : <div id="scrollingTableContainer">.

Pls help me.

10-17-2005, 08:15 PM
Do you mean remove the CSS for the DIV dynamically onClick? Try something like:

<button onClick="document.getElementById('scrollingTableContainer').id=''">Some button</div>

This is the simpliest way, by actually modifying the ID associated with the DIV.

10-27-2005, 11:32 AM
by using image. . how to change it to css code?