How do I do I make the "linkedin" images touch eachother or have a less gap? I am using the second bootstrap footer template here https://getbootstrap.com/docs/5.3/examples/footers/ . I replaced the images on the right side with linkedin images, but cant seem to get the padding/margin right.
HTML:
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<div class="col-md-4 d-flex align-items-center">
<a href="/" class="mb-3 me-2 mb-md-0 text-body-secondary text-decoration-none lh-1">
<svg class="bi" width="30" height="24"><use xlink:href="#bootstrap"></use></svg>
</a>
<span class="mb-3 mb-md-0 text-body-secondary">© 2024</span>
</div>
<ul class="nav col-md-3 justify-content-end list-unstyled d-flex">
<li class="ms-3"><a class="text-body-secondary" href="#"><svg class="bi" width="24" height="24"></svg><img src="./assets/linedkin.png" class="bi" width="24" height="24" /></a></li>
<li class="ms-3"><a class="text-body-secondary" href="#"><svg class="bi" width="24" height="24"></svg><img src="./assets/linedkin.png" class="bi" width="24" height="24" /></a></li>
<li class="ms-3"><a class="text-body-secondary" href="#"><svg class="bi" width="24" height="24"></svg><img src="./assets/linedkin.png" class="bi" width="24" height="24" /></a></li>
</ul>
</footer>
I tried on CSS
.ms-3 {
padding-left: 0.25rem; /* Adjust the left padding */
padding-right: 0.25rem; /* Adjust the right padding */
}
2
Answers
Remove
class="ms-3"
from<li>
and then addpadding
through inline styling. Also, you need to remove thesvg
as it is empty and just occupying the space. Run the snippet to see it in action.