0
I don’t know for sure how to do this, but in my case I would like to subtract 80 pixels from a div that has height:100%
.
I saw that it has to take the height of a div, but I would like to do something that I believe is more complex!
As already says the question "how to know how many pixels has a div with height:100%? And how can I subtract a certain value from that total of pixels and apply what’s left to another div".
That is, I want that at the beginning of the page load some code take convert the 100% height of the div A in pixels. Ex: 100% = 500 pixels, of those 500 pixels I would like to subtract any value, in my case 80 pixels, so that leaves a total of 420 pixels, and I would like these 420 pixels to be applied to another div. Is that possible? If so, how?
Edited answer because there was a small error.
– touchmx