Not Able to Add to Justify Bootstrap 4 Navs











up vote
1
down vote

favorite












can you please take a look at this demo and let me know why I am no able to create justified navs in Bootstrap 4






<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<ul class="nav nav-pills flex-column flex-md-row">
<li class="nav-item">
<a class="nav-link active" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
<div class="nav btn-group d-flex" id="v-pills-tab" role="group" aria-label="Basic example">
<a class="btn btn-secondary btn-lg w-100 active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Home</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Messages</a>

</div>












share|improve this question






















  • They changed the grid and now using flex. Take a look here: getbootstrap.com/docs/4.0/utilities/flex/#justify-content
    – A. Meshu
    Nov 10 at 14:15















up vote
1
down vote

favorite












can you please take a look at this demo and let me know why I am no able to create justified navs in Bootstrap 4






<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<ul class="nav nav-pills flex-column flex-md-row">
<li class="nav-item">
<a class="nav-link active" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
<div class="nav btn-group d-flex" id="v-pills-tab" role="group" aria-label="Basic example">
<a class="btn btn-secondary btn-lg w-100 active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Home</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Messages</a>

</div>












share|improve this question






















  • They changed the grid and now using flex. Take a look here: getbootstrap.com/docs/4.0/utilities/flex/#justify-content
    – A. Meshu
    Nov 10 at 14:15













up vote
1
down vote

favorite









up vote
1
down vote

favorite











can you please take a look at this demo and let me know why I am no able to create justified navs in Bootstrap 4






<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<ul class="nav nav-pills flex-column flex-md-row">
<li class="nav-item">
<a class="nav-link active" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
<div class="nav btn-group d-flex" id="v-pills-tab" role="group" aria-label="Basic example">
<a class="btn btn-secondary btn-lg w-100 active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Home</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Messages</a>

</div>












share|improve this question













can you please take a look at this demo and let me know why I am no able to create justified navs in Bootstrap 4






<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<ul class="nav nav-pills flex-column flex-md-row">
<li class="nav-item">
<a class="nav-link active" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
<div class="nav btn-group d-flex" id="v-pills-tab" role="group" aria-label="Basic example">
<a class="btn btn-secondary btn-lg w-100 active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Home</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Messages</a>

</div>








<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<ul class="nav nav-pills flex-column flex-md-row">
<li class="nav-item">
<a class="nav-link active" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
<div class="nav btn-group d-flex" id="v-pills-tab" role="group" aria-label="Basic example">
<a class="btn btn-secondary btn-lg w-100 active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Home</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Messages</a>

</div>





<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<ul class="nav nav-pills flex-column flex-md-row">
<li class="nav-item">
<a class="nav-link active" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
<div class="nav btn-group d-flex" id="v-pills-tab" role="group" aria-label="Basic example">
<a class="btn btn-secondary btn-lg w-100 active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">Home</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</a>
<a class="btn btn-secondary btn-lg w-100" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">Messages</a>

</div>






bootstrap-4






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 14:03









Behseini

2,262164483




2,262164483












  • They changed the grid and now using flex. Take a look here: getbootstrap.com/docs/4.0/utilities/flex/#justify-content
    – A. Meshu
    Nov 10 at 14:15


















  • They changed the grid and now using flex. Take a look here: getbootstrap.com/docs/4.0/utilities/flex/#justify-content
    – A. Meshu
    Nov 10 at 14:15
















They changed the grid and now using flex. Take a look here: getbootstrap.com/docs/4.0/utilities/flex/#justify-content
– A. Meshu
Nov 10 at 14:15




They changed the grid and now using flex. Take a look here: getbootstrap.com/docs/4.0/utilities/flex/#justify-content
– A. Meshu
Nov 10 at 14:15












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










I'm not sure what you want to justify, but if it's nav pills, just use nav-fill...



   <ul class="nav nav-pills nav-fill flex-column flex-md-row">
<li class="nav-item">
<a class="nav-link active" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>


https://www.codeply.com/go/8vgu9zsZQ0






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239735%2fnot-able-to-add-to-justify-bootstrap-4-navs%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    I'm not sure what you want to justify, but if it's nav pills, just use nav-fill...



       <ul class="nav nav-pills nav-fill flex-column flex-md-row">
    <li class="nav-item">
    <a class="nav-link active" href="#">Link 1</a>
    </li>
    <li class="nav-item">
    <a class="nav-link" href="#">Link 2</a>
    </li>
    <li class="nav-item">
    <a class="nav-link" href="#">Link 3</a>
    </li>
    </ul>


    https://www.codeply.com/go/8vgu9zsZQ0






    share|improve this answer

























      up vote
      1
      down vote



      accepted










      I'm not sure what you want to justify, but if it's nav pills, just use nav-fill...



         <ul class="nav nav-pills nav-fill flex-column flex-md-row">
      <li class="nav-item">
      <a class="nav-link active" href="#">Link 1</a>
      </li>
      <li class="nav-item">
      <a class="nav-link" href="#">Link 2</a>
      </li>
      <li class="nav-item">
      <a class="nav-link" href="#">Link 3</a>
      </li>
      </ul>


      https://www.codeply.com/go/8vgu9zsZQ0






      share|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        I'm not sure what you want to justify, but if it's nav pills, just use nav-fill...



           <ul class="nav nav-pills nav-fill flex-column flex-md-row">
        <li class="nav-item">
        <a class="nav-link active" href="#">Link 1</a>
        </li>
        <li class="nav-item">
        <a class="nav-link" href="#">Link 2</a>
        </li>
        <li class="nav-item">
        <a class="nav-link" href="#">Link 3</a>
        </li>
        </ul>


        https://www.codeply.com/go/8vgu9zsZQ0






        share|improve this answer












        I'm not sure what you want to justify, but if it's nav pills, just use nav-fill...



           <ul class="nav nav-pills nav-fill flex-column flex-md-row">
        <li class="nav-item">
        <a class="nav-link active" href="#">Link 1</a>
        </li>
        <li class="nav-item">
        <a class="nav-link" href="#">Link 2</a>
        </li>
        <li class="nav-item">
        <a class="nav-link" href="#">Link 3</a>
        </li>
        </ul>


        https://www.codeply.com/go/8vgu9zsZQ0







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 10 at 19:51









        Zim

        182k47380366




        182k47380366






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239735%2fnot-able-to-add-to-justify-bootstrap-4-navs%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Tangent Lines Diagram Along Smooth Curve

            Yusuf al-Mu'taman ibn Hud

            Zucchini