Looking to customize the positioning of an image inside a rectangle. The goal is to remove the icon border from a specific location and place it in the top left corner of the rectangle using css and html with bootstrap5. Currently, the image is not aligning correctly within the rectangle.
.node {
position: relative;
display: flex;
align-items: center;
background-color: #4CAF50;
/* Green background color */
color: white;
font-weight: bold;
border-radius: 15px;
width: 200px;/* Adjust as needed */
height: 80px;/* Adjust as needed */
padding-left: 50px;
/* Space for the image */
}
.node-image {
position: absolute;
left: -25px;
/* Half of the circle's diameter */
width: 50px;
height: 50px;
background-color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.node-image i {
width: 40px;
height: 40px;
}
.node-text {
margin-left: 10px;
}
<div class="node">
<div class="node-image">
<i class="bi bi-box"></i>
</div>
<div class="node-text">Name</div>
</div>