I am facing an issue where only half of the image shows up when inserting the fixed effect. I need the entire image to be visible on the right side while adapting it for mobile devices.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
margin: 200px 0;
background: #ccc;
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.content:nth-child(2) {
background: url(http://imgfz.com/i/sPTEXhi.png) no-repeat fixed #ccc;
background-position: 100% 100%;
background-size: contain;
height: 500px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
</head>
<body>
<div class="container">
<div class="content">
<h2>Title Website<h2>
<p>
Lorem ipsum dolor sit amet consectetur
adipisicing elit. In,sequi.
</p>
</div>
<div class="content"></div>
</div>
</body>
</html>