Wednesday, July 24, 2024
HomeCSShtml - Anchor hyperlink within the Bootstrup menu: why the web page...

html – Anchor hyperlink within the Bootstrup menu: why the web page floats to the left?

I’ve a menu. After I click on on the anchor hyperlink, web page floats to the left about 50 pixels.
After I delete div which wrapped nav it do not helps.
What can I do?

Shifting impact

<div class="sticky-top container-fluid p-0">
        <nav class="navbar navbar-expand-lg navbar-light bg-light" >
            <a category="navbar-brand px-3" href="#"><img src="img/logo_0.png" type="peak: 2.5em" alt=""></a>
            <button class="me-3 navbar-toggler" sort="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon "></span>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav mx-3 mb-lg-0">
                    <li class="nav-item">
                        <a category="nav-link" aria-current="web page" href="#ac">One</a>
                    <li class="nav-item">
                        <a category="nav-link" href="/pages/service.html">Two</a>



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments