Rakesh Pai wrote:

> I need to be able to define a class="expanded" and class="collapsed".
> When the user asks for somethng that was expanded to be collapsed, the
> JS should read the CSS file for the width to which the pane will
> collapse (need not be 0px), and should accordingly start playing the
> animation. This way, I won't have any hard-coded width values in my
> JS.

Perhaps this can help you:
"How do I read stylesheet information in Javascript?"
<http://www.html-faq.com/scriptingbasics/?scriptstyles>

"JavaScript tutorial - Manipulating CSS using the W3C DOM"
<http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=27>


Best regards

Jesper Brunholm

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to