Where is my scrollbar 🤔

Where did my scrollbar go? I don’t know, I tried different solutions to get it back, but no way!
Below is the setup in CSS and HTML. I have tried different things to get it back, but no way. It still remains disappeared. Can you see what’s wrong with the CSS, and why I don’t have the scrollbar?

Edit:
Now I found out it is the “position: fixed;” in the “content_box.css” file that is the sinner here. When I Remove it the scrollbar comes back. But there is another problem. Besides on the same line, I got a DIV menu box. When I remove “position: fixed;” the menu DIV moves out of line with the “content_box” div. They is at the same line when I don’t remove it. So I don’t know… Maybe you see a solution in the CSS and HTML I pasted at the bottom when I edited this text.

HTML

<body>
<div class="container_content">
	<div class="content_1">
	<h1 class="headline_center_big">Heading1.</h1><br>
		<h1 class="content_normal">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br>
		Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
		<p>
		Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.	
		</p>
		</h1>
	</div>
	<div class="content_2">
	<h1 class="headline_center_big">Heading2.</h1><br>
	<h1 class="content_normal">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</h1><br>
</div>
</div>
</body>
</html>

CSS - “content_box.css”

div.container_content {
	flex-basis: auto;
	position: fixed;
	width: 75%;
	height: 100%;
	margin-top: 105px;
	margin-left: 213px;
	background-color: #f1f1f1;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
	border-radius: 7px;
	padding: 20px;
	display: flex;
}
div.content_1 {
	flex-basis: 50%;
	width: 100%;
	height: 100%;
	padding: 20px;
	border-right: 1px solid #a1a1a1;
}
div.content_2 {
	flex-basis: 50%;
	width: 100%;
	height: 100%;
	padding: 20px;
	border-left: 1px solid #a1a1a1;
}

CSS - CSS - “content_text.css”

h1.content_normal {
	display: inline;
	font-family: "Helvetica, Ariel" ;
	font-weight: normal;
	font-size: 17px;
	color: #000000;
}
h1.headline_small {
	display: inline;
	font-family: "Helvetica, Ariel" ;
	font-weight: bold;
	font-size: 18px;
	color: #000000;
}
a.inline_bold{
	font-family: "Helvetica, Ariel";
	font-size: 17px;
	font-weight: bold;
	color: #000000;
}
h1.headline_center_big {
	display: inline;
	font-family: "Helvetica, Ariel" ;
	font-weight: bold;
	font-size: 17px;
	color: #000000;
}
h1.headline_big {
	display: inline;
	font-family: "Helvetica, Ariel" ;
	font-weight: bold;
	font-size: 17px;
	color: #000000;
}

HTML - “menu_box.php”

<div class="menu_box">
		<p><a href="../test.php" title="Title Test">Text Test</a></p>
		<p><a href="../test.php" title="Title Test">Text Test</a></p>
		<p><a href="../test.php" title="Title Test">Text Test</a></p>
		<p><a href="../test.php" title="Title Test">Text Test</a></p>
		<p><a href="../test.php" title="Title Test">Text Test</a></p>
		<p><a href="../test.php" title="Title Test">Text Test</a></p>
</div>

CSS - “menu_box.css”

div.menu_box {
	position: fixed;
	width: 165px;
	height: 300px;
	margin-top: 105px;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
	border-radius: 7px;
	background-color: #f1f1f1;
	padding-left: 7px;
	color: #008833;
  	/*margin-top: 75px;*/
  	margin-left: 20px;
	line-height: 6px;
}
div.menu_path {
    position: relative;
	float: right;
	text-align: right;
    width: 250px;
    height: 33px;
    margin: 0;
    padding: 0px;
}

It’s the position: fixed in your div.container_content declaration.

You can figure this out pretty easily by deleting declarations one at a time to narrow down your problem, or by using dev tools in your browser to toggle individual declarations.

Yes, so I find out myself to. I posted it at the same time you posted your ansvere. But the problem is that I can’t delete that CSS line. Then the menu box is moved a few lines down. I posted the HTML and CSS for the menu DIV box to. Have you looked at that?

Sponsor our Newsletter | Privacy Policy | Terms of Service