I have the following:
<html>
<head>
<style>
#outer-grid {
display: grid;
grid-gap:0vh;
grid-template-columns: repeat(2, 1fr) 30px; /*also tried auto in place of 1fr*/
grid-template-rows: repeat(2,1fr);
height: 100vh;
width: 100vw;
position: absolute;
}
</style>
</head>
<body>
<div id='outer-grid'>
<div>item 1</div>
<div>item 2</div>
<div>item 3</div>
<div>item 4</div>
<div>item 5</div>
<div>item 6</div>
</div>
</body>
</html>
This results in content extending beyond the screen width, with scroll bars added (Firefox). What I was expecting is for the right hand column to be fixed at the right hand margin. What am I doing wrong?
How does the browser calculate the overall width in this case?