I programming very simple layout.
It consist 5 div -> http://jsfiddle.net/8tSk6/ .
I want that div with ID "kubka" equal 100% - 100px (height: calc(100% - 100px);
). Unfortunately, it doesn't work.
I try apply tips with CSS3 height: calc(100%) not working (add height = 100%,margin & padding = 0), but script still doesn't work.
Asked
Active
Viewed 224 times
0
-
but height 100% of what element?? the parent www hasn't height – DaniP Feb 10 '14 at 16:05
2 Answers
0
You could use javascript to get the height of the element and then change it :
function updateHeight(divId){
var urDiv = document.getElementById(divId);
urDiv.height = window.innerHeight - 100;
urDiv.style.height = urDiv.height + "px";
}
Hope it solves your problem.

bijoyskochar
- 41
- 3