I have a grid with two columns. On the right column I'm trying to implement the parallax background effect when scrolling, but for some reason, the background looks like it is being centered from the middle of the screen. How do I position the background so that it is within only the right column's grid?
header {
display: flex;
justify-content: center;
align-items: center;
background: gray;
}
body {
height: 10000px
}
.navLink {
padding: 0 25px;
}
#logo {
width: 5%;
height: 5%;
}
/*.container
{
display: grid;
grid-template-columns: [content] minmax(0, 1fr) [images] minmax(0, 1fr);
}*/
.container {
display: grid;
grid-template-columns: [content] 1fr [images] 1fr
}
.content {
grid-column: content;
background: blue;
}
#l-splash {}
.images {
grid-column: images;
background: yellow;
}
.spacing {
height: 100px;
}
.image-block {
width: 400px;
height: 200px;
margin: 0 auto;
}
#r-splash {}
<div class="container">
<div class="content">
<div id="l-splash">
</div>
</div>
<div class="images">
<div class="spacing"></div>
<div id="r-splash">
<div class="image-block" style="background:url(http://placekitten.com/1543/1024) no-repeat center center fixed;"></div>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>
</div>