There must be over a dozen posts with a similar title but none that I have found have been effectively able to do what I thought would be a simple thing which is allow multiple elements to have a height of 100%. Take the following code:
<html>
<head>
<style>
html, body, [role="main"] {height:100%; width:6in; overflow:hidden;}
[role="banner"] {position:fixed; top:0; left:0;}
.height {height:100%; width:100%}
</style>
</head>
<body>
<header role="banner">
<nav>
<a href="#1">Section one</a>
<a href="#2">Section two</a>
<a href="#3">Section three</a>
</nav>
</header>
<div role="main">
<section id="1" class="height">
</section>
<section id="2" class="height">
<header>
<h1>section title</h1>
</header>
<button>Navigate Articles</button>
<article class="height">
<h1>title</h1>
<p>paragraph</p>
</article>
<article class="height">
<h1>title</h1>
<p>paragraph</p>
</article>
</section>
<section id="3" class="height">
</section>
</div>
</body>
</html>
I want to be able to navigate without scrolling. Clicking on a link that takes you to a section and that section will fill 100% of the screen height. When I used the above code I do not get the effect I am looking for. I was close at one point using fixed position on elements with the class "height". It worked on the first section, but the lower sections and the articles within the section two would overlap.