Skip to content

Commit 424a16e

Browse files
adapt header image to window size changes
1 parent d6fe915 commit 424a16e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_layouts/default_about.liquid

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
background-image: url('/assets/img/lab_header.jpeg');
2020
background-repeat: no-repeat;
2121
background-size: contain;
22-
background-position: center center;
23-
height: 100vh; /* Adjust this if there is white space before the image or if image gets cuts off */
24-
margin-bottom: 2em;
22+
background-position: top center;
23+
padding-bottom: 56.25%; /* 16:9 aspect ratio */
24+
height: 0
25+
margin-bottom: 0;
2526
margin-top: -0.0em;
2627
width: 100%;
2728
"></div>

0 commit comments

Comments
 (0)