Skip to content

Commit 5ac568e

Browse files
committed
changed the way things are positioned
1 parent 62cd26e commit 5ac568e

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

not_index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@
3333
<!-- Body starts here -->
3434
<main class="main">
3535
<!-- Banner -->
36-
<div class="body-content">
37-
<h1>one bored guy</h1>
38-
<p>who makes stuff</p>
36+
<div class="banner">
37+
<div class="body-content">
38+
<h1>one bored guy</h1>
39+
<p>who makes stuff</p>
40+
</div>
3941
</div>
4042
<!-- About -->
4143
<div class="about" id="about">

projects/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
work in progress

styles.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ body ::-moz-selection{
124124
main{
125125
height: 100vh;
126126
}
127+
.banner{
128+
height: 100vh;
129+
}
127130
.body-content{
128131
color:white;
129132
/* background: var(--dark-gradient); */
@@ -153,25 +156,24 @@ main{
153156
font-family: 'Outfit',sans-serif;
154157
font-variation-settings: 'wght' 300;
155158
margin: 75px;
159+
position: absolute;
156160
}
157161
.about{
158162
color: black;
159163
background-color: white;
160164
font-size: 25px;
161-
position: absolute;
162-
top: 100vh;
165+
position: relative;
166+
/* top: 100vh; */
163167
height: 100vh;
164-
width: 100%;
165168
border: 0;
166169
}
167170
.projects{
168171
color: white;
169172
background-color: #333f50;
170173
font-size: 25px;
171-
position: absolute;
172-
top: 200vh;
174+
position: relative;
175+
/* top: 200vh; */
173176
height: 100vh;
174-
border: 0;
175177
}
176178

177179
/* Footer */

0 commit comments

Comments
 (0)