I have a very simple situation where I want to set the container element to 80vh and then the inner div will be 100% of that height. In Chrome, this will display correctly, however in Safari, the inner element does not have 100% 80vh height.
.container { background-color: red; width: 100%; height: 80vh; } .inner { height: 100%; background-color: blue; }
Here is a fiddle showing this problem: http://jsfiddle.net/neilff/24hZQ/
In Chrome, the element is blue; in Safari, it is red. Is there any work for this problem without applying 80vh to the height of the .inner div?
css safari css3 viewport-units safari7
Neil
source share