I'm having trouble aligning images and links side-by-side in my side navigation bar. The images are supposed to show the destination of each link, and I want them to be next to their respective links. I also want the borders of each link to be equal. Check out how it looks here.
I need to place a guitar icon next to the Chords link, and do the same for the rest of the links and their respective icons. Here's the CSS code I'm using:
<div class="code-box" id="code-box">
<img src="img/chords.png">
<a href="#">Chords</a>
<img src="img/tabs.png">
<a href="#">Tabs</a>
<img src="img/notereading.png">
<a href="#">Note Reading</a>
</div>
I've tried setting the position property of the links to relative, and it worked for one link. However, when I tried adding more links, they didn't align properly as if they weren't within an inline-block element. I thought that inline-block would only make elements sit on the same line if they can fit. I would appreciate any help on this issue. Thank you!