Daemonite / material

Material Design for Bootstrap 4
http://daemonite.github.io/material/
MIT License
3.2k stars 720 forks source link

Not possible to have link ont left AND right navbar #247

Closed zf-development closed 4 years ago

zf-development commented 4 years ago

I would like to add link like Login & Register to the right of my navbar.

I tried everything I know in CSS and HTML but I haven't been able to do it.

Today I'm asking you to include a possibility to add links to the right of a navbar.

djibe commented 4 years ago

Hi, do you have a screenshot of your actual navbar ? Or a drawing of what you want ?

sesemaya commented 4 years ago

@zgagne

I believe you can achieve this by either

  1. Using .ml-auto class to push the element to the right:
    <nav class="navbar ...">
    <ul class="navbar-nav ml-auto">
        ...
    </ul>
    </nav>
  2. If your .navbar only contains links on the right hand side, then you can change the alignment of the .navbar by adding .justify-content-end class:
    <nav class="navbar justify-content-end ...">
    <ul class="navbar-nav">
        ...
    </ul>
    </nav>

    Hope that helps.

zf-development commented 4 years ago

Using .mr-auto was not working so I redownloaded the gem and it’s fixed.