I am currently working on creating my personal portfolio website. I have encountered an issue where the image inside a div element enlarges the size of the entire div as well. My goal is to keep the image slightly larger while maintaining the same size for the surrounding div. Below is the link to my jsfiddle where you can see the problem:
https://jsfiddle.net/gckw3p9L/
The specific code snippet causing the issue is as follows:
<div class="bar">
<div class="barStyle">
<p class="paragraphBar"><img src="images/icon2.png" width="20px" height="20px" alt"Projects">TEST TEST.
</p>
</div>
</div>
I would greatly appreciate any assistance in resolving this issue.