File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
layout: default
3
3
---
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" >
5
28
<div class =" post" >
6
29
<header class =" post-header" >
7
30
<h1 class =" post-title" >
You can’t perform that action at this time.
0 commit comments