I know I can set a CSS value through JavaScript such as:

document.getElementById('image_1').style.top = '100px';

But, can I get a current specific style value? I’ve read where I can get the entire style for the element, but I don’t want to have to parse the whole string if I don’t have to.

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *