Skip to content

Commit

Permalink
Add styling and structure for layered background images
Browse files Browse the repository at this point in the history
Updated index.html to include CSS for centering, layering, and scaling multiple background images. A black radial overlay has been added for visual effect and the body's padding and margin reset to zero.
  • Loading branch information
MatejMa2ur committed Apr 30, 2024
1 parent 76dcbbb commit 9857456
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 3 deletions.
Binary file added img/Bg.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/LIVE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 50 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,56 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
.centered-image {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 2;
}
.bg-image-1 {
position: absolute;
height: 100%;
width: 100%;
object-fit: cover;
}
.bg-image-2 {
position: absolute;
height: 80%;
width: 80%;
object-fit: cover;
}
.bg-image-3 {
position: absolute;
height: 60%;
width: 60%;
object-fit: cover;
}
.black-overlay {
position: absolute;
height: 100%;
width: 100%;
background: radial-gradient(circle at center, transparent, rgba(0,0,0,0.7) 70%);
z-index: 1;
}
</style>
</head>
<body>
<h1>Hello!</h1>

<body style="margin: 0;padding: 0">
<div class="container">
<img class="bg-image-1" src="img/Bg.jpeg" />
<img class="bg-image-2" src="img/Bg.jpeg" />
<img class="bg-image-3" src="img/Bg.jpeg" />
<div class="black-overlay"></div>
<img class="centered-image" src="img/LIVE.png" />
</div>
</body>
</html>

0 comments on commit 9857456

Please sign in to comment.