i use startbootstrap-small-business template and try to adapt this to my needs.
I added a new logo and was forced to change the height of navbar to ca. 120px.
What i need/want to do now is to align vertically the links on the right side of the logo. They need to be in the middle of navbar.
I tried to use line-height (line-height:60px
and @media {line-height:2px }
) for the .navbar-nav li a
element of the navbar and it works for normal browser resolution, but when I change the size of the browser to check how does it look in small devices the line height is not overriden via @media it still takes the size of 60px and the height of the links in dropdown menu is to big. Does someon can help me?
/*!
* Start Bootstrap - Small Business HTML Template (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
padding-top: 110px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
.navbar {
min-height: 100px;
}
.navbar-fixed-top .nav {
padding: 0;
}
.navbar-nav li a {
line-height: 60px;
}
.navbar-fixed-top .navbar-brand {
padding: 0 15px;
}
.navbar-inverse {
background-color:#000;
}
footer {
padding: 30px 0;
}
@media(min-width:@screen-sm-min) {
body {
padding-top: 110px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
.navbar-fixed-top .navbar-brand {
padding: 0;
}
.navbar-nav li a {
line-height: 2px;
}
}