Within this specific scenario, my goal is to conceal the text when viewed on smaller screens and solely display the icon located to the left (an icon representing comments from font awesome):
<a id="newCommentLink" href="#">
<i class="fa fa-comments text-secondary"></i>
<span class="d-none d-md-inline-block">Comment</span>
</a>
Upon reviewing the provided code snippet, it is evident that I aim for the text 'comment' to be hidden on mobile screens (xs and sm sizes) so it only becomes visible on medium to large screens. Nevertheless, the current HTML implementation showcases the text 'comment' beneath the icon instead of aligning it next to the icon. I am encountering difficulty in making the text display inline with the icon. Is there anyone knowledgeable about resolving this issue and achieving the desired outcome?