I can't justify menu in bootstrap 3 using regular text-align:justify
and display: inline-block
, but everything is ok on the sites without bootstrap.
The site without bootstrap (http://shop.staceydogs.ru). The menu have this structure:
.sd-menu — ul — — li — — li ... — — li — — ul:after
And this style:
.sd-menu {
width: 100%;
}
.sd-menu ul {
list-style: none;
text-align: justify;
}
.sd-menu ul li {
display: inline-block;
}
.sd-menu ul:after {
content: '';
display: inline-block;
width: 100%;
}
And everything works great!
The site with bootstrap (http://dogs.fuksman.ru). The menu have this structure:
.navbar — ul.navbar-nav — — li — — li ... — — li — — .navbar-nav:after
And this style (only non-standard for bootstrap styles are shown):
.navbar-nav {
text-align: justify;
> li {
display: inline-block;
}
}
.navbar-nav:after {
content: '';
width: 100%;
display: inline-block;
}
And it doesn't work! Can you help me?