Skip to content

Commit 38bfb18

Browse files
committed
fixed the spacing
1 parent 3957197 commit 38bfb18

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/styles.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ nav ul li a.text-shadow-lg {
9595
.two-column-container {
9696
display: flex;
9797
gap: 40px;
98-
padding: 20px;
98+
padding: 20px; /* Keep the existing horizontal padding */
99+
margin-top: 40px; /* Add margin-top here */
99100
align-items: flex-start;
100101
max-width: 1200px;
101-
margin: 0 auto;
102+
margin-left: auto;
103+
margin-right: auto;
102104
position: relative; /* For the vertical line */
103105
}
104106

@@ -118,7 +120,7 @@ nav ul li a.text-shadow-lg {
118120
.hero {
119121
flex: 1;
120122
text-align: right; /* Align text to the right (right-to-left) */
121-
padding-right: 40px; /* Add padding to avoid overlap with the line */
123+
padding-right: 20px; /* Add padding to avoid overlap with the line */
122124
}
123125

124126
.hero h1 {
@@ -154,7 +156,7 @@ nav ul li a.text-shadow-lg {
154156
.intro {
155157
flex: 1;
156158
text-align: left; /* Align text to the left (left-to-right) */
157-
padding-left: 40px; /* Add padding to avoid overlap with the line */
159+
padding-left: 20px; /* Add padding to avoid overlap with the line */
158160
}
159161

160162
.intro p {

0 commit comments

Comments
 (0)