I've a page like this:
<html>
<head>
<style type="text/css">
#mainDiv{
height: 100%;
}
#myDiv{
overflow: auto;
width: 400px;
}
</style>
</head>
<body>
<div id="mainDiv">
<div id="myDiv">content</div>
</div>
</body>
</html>
I wish mainDiv
was entirely contained in the screen (without scrollbars). This div contains myDiv
and myDiv
height depends on the screen height in such a way that its bottom border has a 30px margin from the screen bottom (or mainDiv
bottom).
What can I do?