Position content within Navbar Bootstrap

0

I am using and remodeling a navbar whose template is made by Bootstrap's own site, but after making insertions of the classes that I thought was able to position the objects I noticed that they were not working (although many are), so here is a print from page:

Myintentionwastocentralizetheformsearch(includestheradiobutton)andputtheloginandcreateaccountbuttonsatthesamelevel

Bootstrapcode:

<body><navclass="navbar navbar-default" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> 
                    <span class="sr-only">Toggle navigation</span> 
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button> 
                <a class="navbar-brand" href="#">Meu Site</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <form class="navbar-form" role="search">
                    <div class="form-group">
                        <label class="radio-inline"><input type="radio" name="optradio">Option 1</label>
                        <label class="radio-inline"><input type="radio" name="optradio" checked="">Option 1</label>
                        <label class="radio-inline"><input type="radio" name="optradio">Option 1</label>
                        <input class="form-control" type="text" placeholder="Search" />
                    </div>
                    <button class="btn btn-default" type="submit">Search</button>
                </form>
                <ul class="nav navbar-nav navbar-right">
                    <li><button class="btn btn-default">Login</a></li>
                    <li><button class="btn btn-default">Create Account</a></li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container -->
    </nav>
</body>
    
asked by anonymous 22.12.2014 / 12:31

1 answer

1

I think this will help you:

<form class="navbar-form navbar-form navbar-left" role="search">

Replace old code with above code.

    
22.12.2014 / 14:41