I am trying to design a list item for a game that includes a background, an iconholder with an icon, a title, description, and up to three resources. I have been experimenting with Bootstrap and attempted using a container-fluid with an inner row but the images end up stacking on top of each other (refer to the image) []
Is there a way to ensure that the images are stacked on top of one another rather than underneath?
This is what my HTML code looks like so far:
.resourceHolder {
position: relative;
}
.resourceIcon {
position: relative;
}
.nopadding {
padding: 0 !important;
margin: 0 !important;
}
.iconHolder {
position: relative;
width: 100%;
}
.icon {
position: relative;
width: 65%;
}
.bannerText {
font-family: FenwickWood;
color: #0062cc;
margin: 0 0 20% 0;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: beige;
pointer-events: none;
}
<div class="container-fluid">
<img class="background" src="assets/UI/window/wood_plank1.svg">
<div class="row">
<div class="col-sm-3 nopadding">
<img class="iconHolder" src="assets/UI/window/grid4L.svg">
<img class="icon" src="assets/Terrain_Medieval/Decor/villageSmall03.png">
</div>
<div class="col-sm-3 nopadding">
<h1 class="bannerText">Village</h1>
</div>
<div class="col-sm-2 nopadding">
<img class="resourceHolder" src="assets/UI/window/grid4L.svg">
<img class="resourceIcon" src="assets/Icons/gold_coins.png">
</div>
</div>
</div>