css - 从右向左移动导航栏

标签 css navbar

我试图将我的水平菜单从右移到左,但我找不到任何好的解决方案。 this is how the menu currently looks like.

这是用于导航栏的代码:

 .navbar .navbar-collapse {
        min-height: 125px;
        margin-bottom: 0!important;
        text-align: justify
    }

    .navbar-collapse ul li a {
        font-family: {{ settings.face_secondary_button_text }};
        text-transform: uppercase;
        font-size: 14px;
        color: {{ settings.color_secondary_button_text }};
        font-weight: 900;
        height: 2px;
        padding-bottom: 22px;
        padding-left: 0px;
        padding-right: 0px;
        margin-left: 55px;


    }

    .navbar-collapse ul li a:hover {
        background-color: transparent;
        border-bottom: 3px solid {{ settings.color_secondary_button_hover }};
    }

    .on-state {
        background-color: transparent!important;
        border-bottom: 3px solid {{ settings.color_body_text }}!important;
    }

    .navbar-static-top {
      margin-bottom: 0!important;
      min-height: 80px;
    }

最佳答案

导航栏部分将有一个 ul class="navbar-left"你在“navbar-right”中有菜单,将菜单更改为 navbar-right 或引用 bootstrap 3 navbar。

关于css - 从右向左移动导航栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33803944/

相关文章:

css - ImageMagick 将 SVG 转换为具有透明背景的 PNG

javascript - 我如何使用 jquery 创建覆盖联系表单

css - 为什么粘性导航栏在 Laravel 中不起作用

html - 带有居中 Logo 的导航栏

html - 为什么父div中的子div占用的宽度多于定义的宽度?

css - 需要防止包含幻灯片的 div 或 iframe 上的不透明度继承

html - Bootstrap navbar-brand logo/svg定位

html - 导航栏的右侧部分不显示过渡

html - 如何使用模板使导航栏响应

javascript - 在加载之前将 css 样式应用于 iframe 页面