I am currently working with the following HTML and CSS:
<div class="LABEL_MAIN">
<div class="LABEL_BOX">
<div class="OP_LABEL">
bro
</div>
</div>
<div class="outer-plus">
<div class="inner-plus">
<svg xmlns="http://www.w3.org/2000/svg" width="10"
height="10" viewBox="0 0 10 10" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M5 0.5C5.25642 0.5 5.46775 0.69302 5.49664
0.941689L5.5 1V4.5H9C9.27614 4.5 9.5 4.72386
9.5 5C9.5 5.25642 9.30698 5.46775 9.05831
5.49664L9 5.5H5.5V9C5.5 9.27614 5.27614 9.5 5
9.5C4.74358 9.5 4.53225 9.30698 4.50336
9.05831L4.5 9V5.5H1C0.723858 5.5 0.5 5.27614
0.5 5C0.5 4.74358 0.69302 4.53225 0.941689
4.50336L1 4.5H4.5V1C4.5 0.723858 4.72386 0.5 5
0.5Z" fill="black"/>
</svg>
</div>
</div>
</div>
CSS:
.LABEL_MAIN{
display: flex;
width: 247px;
align-items: center;
gap: 23px;
border-bottom: 1px gray solid;
padding-bottom: 8px;
}
.LABEL_MAIN:last-child{
border-bottom: none;
}
.LABEL_BOX{
width: 247px;
justify-content: flex-start;
padding-top: 8px;
padding-bottom: 8px;
align-items: center;
gap: 23px;
display: inline-flex
}
.OP_LABEL{
width: 224px;
color: green;
font-size: 14px;
font-family: Bogle;
font-weight: 400;
text-decoration: underline;
line-height: 20px;
word-wrap: break-word
}
.outer-plus{
padding: 8px;
border-radius: 100px;
overflow: hidden;
flex-direction: column;
justify-content: flex-start;
align-items: flex-end;
display: inline-flex;
}
.inner-plus{
padding: 3.50px;
justify-content: flex-start;
align-items: flex-start;
display: inline-flex;
}
.plus{
width: 9px;
height: 9px;
}
I have created a js fiddle to demonstrate the issue I am facing with the SVG not displaying fully within its container. Here is the link to the code:
Could you provide some guidance on how to correct this issue? I am unsure if the problem lies in the padding of LABEL_MAIN or the use of display: inline-flex.
This is what the result should resemble:
https://i.sstatic.net/TNEdv.png
I attempted removing padding in the LABEL_MAIN section, but it did not resolve the issue. I am uncertain whether using display: inline-flex is causing the problem.