View Single Post
  #1 (permalink)  
Old May 7th, 2007, 01:23 AM
anujrathi anujrathi is offline
Authorized User
Points: 375, Level: 6
Points: 375, Level: 6 Points: 375, Level: 6 Points: 375, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2006
Location: New Delhi,India.
Posts: 79
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to anujrathi Send a message via MSN to anujrathi Send a message via Yahoo to anujrathi
Default retrieve attribute values from CSS(from class)

Hi experts,
I am facing a problem with stylesheets.
I hav some div in my page. I set their styles using stylesheet(with the help of id ).
Now i have to change their height & width using javscript.
But i am not able to get these values from CSS.

eg. document.getElementById('idname').height or
      document.getElementById('idname').style.height
is not working. first one shows null & later shows undefined.

But if i write these properties in style attribute then i can get it easily by
    document.getElementById('idname').style.height


Pls tell me that is there any way to pick attribute values from class name (means from css)

regards,
Anuj rathi