Closed
requested to merge github/fork/julien-deramond/main-jd-navbar-img-text-remove-extra-spaces into main
While working with navbars, I've spotted something that I think is not here on purpose.
Indeed, this is the line break in the source code that adds a space between the image and the text.
If we remove this line break, the string doesn't have anymore those extra spaces and becomes right next to the image:
This PR is a proposal to align all the content of the <a>
and to handle the spacing with a .me-1
(see it in action here)
Another technique would be to do something like that whose I'm not a big fan of:
<a class="navbar-brand" href="#">
<img src="/docs/{{< param docs_version >}}/assets/brand/bootstrap-logo.svg" alt="" width="30" height="24" class="d-inline-block align-text-top me-1"><!--
-->Bootstrap<!--
--></a>
Feel free to close this PR if you find it irrelevant or if it is something not very useful to change.