Skip to content

Commit c1b33f5

Browse files
authored
Update about.liquid for overlaid background with css
1 parent 33928b1 commit c1b33f5

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

_layouts/about.liquid

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,30 @@
11
---
22
layout: default
33
---
4-
<div style="background-image: url('/assets/img/background.png'); background-size: 100% 100%; background-position: center; background-repeat: no-repeat; padding: 20px;">
4+
5+
.transparent-bg {
6+
position: relative;
7+
padding: 20px;
8+
overflow: hidden;
9+
}
10+
11+
.transparent-bg::before {
12+
content: '';
13+
background-image: url('/assets/img/background.png');
14+
background-size: cover;
15+
background-position: center;
16+
background-repeat: no-repeat;
17+
position: absolute;
18+
top: 0;
19+
left: 0;
20+
right: 0;
21+
bottom: 0;
22+
opacity: 0.3; /* Adjust opacity */
23+
z-index: -1;
24+
}
25+
26+
27+
<div class="transparent-bg">
528
<div class="post">
629
<header class="post-header">
730
<h1 class="post-title">

0 commit comments

Comments
 (0)