Just joined this community and hoping for some guidance.
I'm working on arranging separate images in a specific layout like this. Here's my code on jsfiddle.
This is the HTML I'm using:
<body>
<div class="grid-container">
<div class="grid-item">
<h1>Arrangement</h1>
<div class="garuda-container">
<div><img class="kepala hoverable partgaruda" src="https://i.postimg.cc/vmxvnPxD/kepala.png"></div>
<div><img class="leher hoverable partgaruda" src="https://i.postimg.cc/6qcVKggb/leher.png" alt=""></div>
<div><img class="sayap hoverable partgaruda" src="https://i.postimg.cc/RZH3Q2Gr/sayap.png" alt=""></div>
<div class="tameng-container">
<img class="tameng partgaruda" src="https://i.postimg.cc/pdjDrp3F/tameng.png" alt="">
<img class="banteng hoverable partgaruda" src="https://i.postimg.cc/52N7XqmF/banteng.png" alt="">
<img class="beringin hoverable partgaruda" src="https://i.postimg.cc/cL9DwgDk/beringin.png" alt="">
<img class="bintang hoverable partgaruda" src="https://i.postimg.cc/hGNp3FR9/bintang.png" alt="">
<img class="padikapas hoverable partgaruda" src="https://i.postimg.cc/3xdjMLB9/padikapas.png" alt="">
<img class="rantai hoverable partgaruda" src="https://i.postimg.cc/LXd33zjD/rantai.png" alt="">
</div>
<div><img class="kaki hoverable partgaruda" src="https://i.postimg.cc/C5hDcJ5G/kaki.png" alt=""></div>
<div><img class="semboyan hoverable partgaruda" src="https://i.postimg.cc/ZKD3L8SN/semboyan.png" alt=""></div>
<div><img class="ekor hoverable partgaruda" src="https://i.postimg.cc/fyD76D20/ekor.png" alt=""></div>
</div>
</div>
<div class="grid-item explainer">
<h1>End Result</h1>
<img style="zoom: 50%" src="https://i.postimg.cc/d3hQQTxM/garudapancasila.png" alt="">
</div>
</div>
And here is the CSS I've implemented:
.grid-container {
display: grid;
padding: 0.5rem;
background-color: white;
grid-template-columns: 2fr 2fr;
}
.grid-item {
background-color: darkslategrey;
margin: 0.125rem;
padding: 1rem;
text-align: center;
color: white;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.garuda-container {
position: relative;
width: 100%;
}
.partgaruda {
/* position: absolute; */
max-width: 100%;
zoom: 25%;
}
.hoverable:hover {
filter: drop-shadow(0 0 1.5rem white);
}
I separated the images so that each part has a drop shadow effect when hovered over (shown on jsfiddle). Am I heading in the right direction or is there a better approach to achieve what I want? Please excuse any lack of clarity as I am still new to working with HTML and CSS.