I'm trying to build a website with bootstrap and currently I am trying to implement a feature that does the following: there is a picture and some text (a link, to be precise) next to it. The text is hidden by default and I want it to be shown when I hover over the image. However, this doesn't happen and I can't figure out why.
HTML code of the image and the text:
<div class="row align-items-center justify-content-center" id="linkedinrow">
<div class="col-1 align-self-center" id="linkedinpiccol">
<a href="https://www.linkedin.com/" id="linkedinpica"><img src="images/linkedin.svg" alt="LinkedIn" id="linkedinpic"></a>
</div>
<div class="col align-self-center" id="linkedintextcol">
<a id="linkedintext" href="https://www.linkedin.com/">https://www.linkedin.com</a>
</div>
</div>
CSS code:
#linkedintext{
display: none;
}
#linkedinpica:hover + #linkedintext{
display: block;
}