After successfully creating a circular badge, I encountered an issue when trying to align it with the text. The circle starts at the same level as my content, but I aim to center it so that '100%' lines up perfectly with the preceding text: [FETCH NOM CERTIF]
https://i.sstatic.net/fIysy.png
If you take a look here, you'll see that I've defined the CSS for the badge:
.badge {
height: 30px;
width: 30px;
display: table-cell;
text-align: center;
vertical-align: middle;
border-radius: 100%;
background: #3dd16e;
font-size: 10px;
}
.inline {
display: inline;
}
And here is the HTML structure where the alignment needs adjustments:
<img class="icon" src="../../../media/img/skills.png">
<h4 class="headLines">Compétences :</h4><br>
<h6 class="paddtext inline">Certificat : [FETCH NOM CERTIF] <span class="badge">100%</span></h6><br>
<h6 class="paddtext inline">Certificat : [FETCH NOM CERTIF] <span class="badge">95%</span></h6><br>
<h6 class="paddtext inline">Certificat : [FETCH NOM CERTIF] <span class="badge">90%</span></h6><br>
<h6 class="paddtext inline">Certificat : [FETCH NOM CERTIF] <span class="badge">85%</span></h6><br>