Javascript subtracting pixels from percentage

tonicman

New Member
I am looking to use JavaScript to restyle a div on button click. I have everything working, except one thing. One of the things that I want to do is change the maximum height of the div from what I currently have it set to, to 100% - 12px. I tried using the CSS calc() function, but it didn't work. The strangest thing about this is that when I checked the developer console for errors, it did not throw an error. Does anyone know how to do what I am asking?Thanks in advance!
 
Top