Seeking a unique responsive webpage design utilizing Bootstrap. I envision a vertical scrollspy on the left paired with parallax scrolling on the right, akin to this example.
Here's my current code snippet:
<!DOCTYPE html>
<html>
<head>
<title>Rwitaban Goswami</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style>
body{
position: relative;
}
ul.nav-pills{
top:20px;
position:fixed;
}
.parallax{
min-height:300px;
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
}
.parallaxsec{
background-image: url("DP.jpg");
}
.jumbotron{
margin-bottom: 0;
}
.parallax h1 {
color: rgba(255, 255, 255, 0.8);
font-size: 60px;
text-align: center;
padding-top: 60px;
line-height: 100px;
}
p{
font-size: 20px;
}
</style>
</head>
<body data-spy="scroll" data-target="#navbar" data-offset="20">
<div class="container">
<div class="row no-gutters">
<nav id="scrollspy" class="col-sm-3">
<ul class="nav nav-pills nav-stacked">
<li class="active"><a href="#item-1">Item 1</a></li>
<li> <a href="#item-2">Item 2</a></li>
</ul>
</nav>
<div class="col-sm-9">
<div class="jumbotron parallax parallaxsec">
<h1 class="display-3">Rwitaban Goswami</h1>
</div>
<div>
<p>Text</p>
</div>
</div>
</div>
</div>
</body>
</html>
However, I'm facing issues with excessive white space in the layout and narrow image width. How can I achieve a more preferable design with the scrollspy snugly placed without extra space and ample width for the image and text?