css3 - Vertically align list items in bootstrap navbar with a set height -


i have navbar in bootstrap list items stuck top when height set. there more fluid way of centering them vertically without using margin-top.

bootply http://www.bootply.com/ua9pftsudv

i suggest padding links, so:

@media (min-width: 768px){      .navbar-nav>li>a {       padding-top: 60px;       padding-bottom: 60px;     }  } 

that allows different states take height of nav bar.

see in bootply


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -