Currently, I am attempting to create a div that will occupy the entire height of the window, which is set to 640px, regardless of the content within the <h3>
tag. However, I seem to be missing something in my code. I am using an emulator to run the application, so I am wondering if Cordova is causing the issue.
$(window).height(); // The window height is 640px
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
</head>
<body>
<!-- Cordova scripts go here -->
<div style="height: 100%;" >
<div id="d1" style="background-color: coral; height: 100%;">
<h3>This is a test div.</h3>
</div>
</div>
</body>
</html>