Skip to content

Commit ab68cb8

Browse files
committed
Carousel fixed
1 parent 2622be7 commit ab68cb8

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

img/Website-Cropped-02.jpg

-138 KB
Loading

img/Website-Cropped-03.jpg

-16.6 KB
Loading

img/Website-Cropped-10.jpg

53.7 KB
Loading

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<div class="carousel-item">
5757
<img src="img/Website-Cropped-03.jpg" alt="New York">
5858
</div>
59+
<div class="centered">Edgemont Robotics</div>
5960
</div>
6061

6162
<!-- Left and right controls/icons -->

style.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
.carousel-inner img {
1414
align-items: center;
15+
padding-top: 10px;
1516

1617
}
1718

@@ -149,4 +150,14 @@ h1 {
149150
.navbar-nav {
150151
display: none;
151152
}
152-
}
153+
}
154+
155+
156+
.centered {
157+
position: absolute;
158+
top: 50%;
159+
left: 50%;
160+
transform: translate(-50%, -50%);
161+
font-size: 64pt;
162+
font-weight: 500
163+
}

0 commit comments

Comments
 (0)