Can you assist me with this issue? I am trying to position a span and an img inside an li element within a sidebar. My goal is to have the span always display to the right of the image, with the image vertically centered, regardless of the length of the text in the span (which could vary).
Currently, my code looks like this:
https://i.sstatic.net/Athn6.png
Here is the HTML:
<li class="sidebar-menu-item">
<p class="sidebar-menu-button" ><img src="img/logout.png"/>Text that could be very long</p>
</li>
This is what I am aiming for:
https://i.sstatic.net/jl9AR.png
I would greatly appreciate any assistance on this matter :)