I have a challenge that I'm working on. My goal is to make the navbar-brand image overlap with the navbar without changing its height, as the navbar itself has a fixed height of 80px. The current solution kinda works, but I am facing an issue where the top part of the image is getting cut off. I attempted using 'vertical-align: top', but it only slightly adjusts the position and does not fully display the image. I want the image to be visible right at the top of the screen, without any padding.
On smaller screens below 'md' size, the overlapping image disappears and another one appears in its place. This replacement image should now be 'img-fluid' and adjust its size according to the navbar dimensions. However, when resizing the screen causing the navbar to collapse, the navbar's height remains fixed at 80px while the new image starts overlapping it, creating issues with the collapsible toggle button. How can I resolve these conflicting requirements?
Here is a link to my CodePen for reference: https://codepen.io/anon/pen/QYmMyg
Edit: Additionally, I discovered that setting a fixed height for the navbar prevents the collapse feature from functioning correctly, as the height constraint affects the collapsible behavior. Is there a way to increase the navbar's height while maintaining the overlapping image and ensuring proper navbar collapsing functionality?