Skip to content

Commit a32489e

Browse files
committed
Added mid section
1 parent cb941c8 commit a32489e

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,23 @@ <h1>Hey it is a open source project , You can Contribute here.</h1>
6161

6262

6363
<!-- Middle section -->
64+
<div class="container">
65+
<!-- Left Section -->
66+
<div class="left-section">
67+
<h2>Left Section</h2>
68+
<p>This is the left section content.</p>
69+
</div>
70+
71+
<!-- Right Section with Scrollbar -->
72+
<div class="right-section">
73+
<h2>Right Section</h2>
74+
<div class="scrollable-content">
75+
76+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla facilisi.</p>
6477

78+
</div>
79+
</div>
80+
</div>
6581

6682
<!-- footer -->
6783

style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* Reset some default styles */
2+
body, h2, p {
3+
margin: 0;
4+
padding: 0;
5+
}
6+
7+
/* Main container styles */
8+
.container {
9+
display: flex;
10+
}
11+
12+
/* Left section styles */
13+
.left-section {
14+
flex: 1; /* Takes up 1/3 of the container width */
15+
background-color: #f5f5f5;
16+
padding: 20px;
17+
border-right: 1px solid #ddd;
18+
}
19+
20+
/* Right section styles */
21+
.right-section {
22+
flex: 2; /* Takes up 2/3 of the container width, making it wider */
23+
padding: 20px;
24+
overflow-y: auto; /* Add a scrollbar if content exceeds the container height */
25+
}
26+
27+
/* Scrollable content styles */
28+
.scrollable-content {
29+
max-height: 400px; /* Adjust the maximum height as needed */
30+
}

0 commit comments

Comments
 (0)