After exploring several of the suggested questions that appeared while typing, I was unable to find a solution to my issue.
Currently, I am utilizing Uikit V2 and I have implemented a div with the Sticky component as shown below:
<div class="uk-sticky" data-uk-sticky id="nvbr">
<nav class="uk-navbar-center">
<a class="uk-button" href="#pg5"><h3>Contact</h3></a>
<a class="uk-button" href="#pg6"><h3>AboutUs</h3></a>
<a class="uk-button" href="#pg3"<h3>Services</h3></a>
</nav>
</div>
While this setup performs well on a full screen, I encounter a problem when resizing to a smaller screen as the bar becomes excessively wide. Upon inspecting the element in Chrome, I noticed the following line:
<div class="uk-sticky-placeholder" style="height: 123px; margin:0px;">
I am curious to know where this line is located in my code and how I can rectify this issue. I have sifted through both Uikit and Uikit.js for a solution.
(It's worth mentioning that when I adjust the height from 123px to 10px in the Inspector, the layout appears as desired.)
Thank you in advance for any assistance provided.