Answers for "navbar items centered"

0

navbar items center

# css
.navbar-expand-lg .navbar-collapse {
display: flex!important;
justify-content: space-around;
flex-basis: auto;
}
Posted by: Guest on June-23-2020
0

css menu center of screen

/* css code */
.container{            
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
}

/* html code */
<div class="container">
    <li><a href="#" class="link">Home</a></li>
    <li><a href="#" class="link">About Us</a></li>
    <li><a href="#" class="link">Services</a></li>
    <li><a href="#" class="link">Gallery</a></li>
    <li><a href="#" class="link">Contact</a></li>
</div>
Posted by: Guest on November-01-2020

Code answers related to "navbar items centered"

Browse Popular Code Answers by Language