Reputation: 101
How to make the height of all names of the tabs same size? At LI the height is same, but if I do for A height: 100% nothing changes. Thanks
simple bootstrap
Upvotes: 3
Views: 5757
Reputation: 16116
You can use javascript
$(document).ready(function(){
var highest = null;
$(".nav-tabs a").each(function(){ //find the height of your highest link
var h = $(this).height();
if(h > highest){
highest = $(this).height();
}
});
$(".nav-tabs a").height(highest); //set all your links to that height.
});
For CSS you can do
.nav-tabs a {
height: 62px;
}
For your example 62px works, but you'll need to adjust it so that it is big enough to fit the tab with the most text. Also make sure you apply your css after the bootstrap css.
Upvotes: 6