Is there a way to align the button with the text on the same line, instead of it dropping down (refer to the image below)?
https://i.sstatic.net/hQ3YC.png
This is my current html and css code (utilizing bootstrap):
<a href="#" class="mx-1 text-muted" title="Impossible to
{{ selected.blabla }}
or whatever">
<div class="m-sg-list-img__item d-inline">
<svg class="svg-icon svg-circle-cross float-right" aria-hidden="true" focusable="false">
<use xlink:href="{% static 'svg-icons/icon-sprite.svg' %}#circle-cross"></use>
</svg>
</div>
</a>
The d-inline
in the 4th line creates blocks for everything. The float-right
in the 5th line positions the svg button to the right. However, it's still dropping below as seen in the picture.
I've attempted using text-nowrap
in the div class to prevent the drop, but to no avail. I also tried .justify-content-end
,.align-self-end
, and other bootstrap methods fromhere, all unsuccessful.
If you have any suggestions or solutions, please let me know!