css - Floating Nav Links to Right -


how can every link main 'digestible` link right of nav keep them in order?

jsfiddle: https://jsfiddle.net/ut1poay3/

<div id="app">     <nav class="navbar navbar-light bg-faded">       <ul class="nav navbar-nav">         <li class="nav-item active">           <a class="nav-link" href="#"><h4>digestible <span class="sr-only">(current)</span></h4></a>         </li>         <li class="nav-item">           <a class="nav-link" href="#" style="color: #ffcc00">create quiz</a>         </li>         <li class="nav-item">           <a class="nav-link" href="#">study</a>         </li>         <li class="nav-item dropdown">           <a class="nav-link dropdown-toggle" href="http://example.com" id="navbardropdownmenulink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">           maxwell gover           </a>           <div class="dropdown-menu" aria-labelledby="navbardropdownmenulink">             <a class="dropdown-item" href="#">action</a>             <a class="dropdown-item" href="#">another action</a>             <a class="dropdown-item" href="#">something else here</a>           </div>         </li>       </ul>     </nav> </div> 

thanks!

like this: jsfiddle

add <div> wraps "create quiz", "study" , "maxwell gover" , float right.

html

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-aysav+vqot3koaxzkl02pthvdr8hykpzhnt5h/cxfbthsrxq6jw5do2ekp5vifdi" crossorigin="anonymous">  <div id="app">   <nav class="navbar navbar-light bg-faded">     <ul class="nav navbar-nav">       <li class="nav-item active">         <a class="nav-link" href="#"><h4>digestible <span class="sr-only">(current)</span></h4></a>       </li>       <div class="right">         <li class="nav-item">           <a class="nav-link" href="#" style="color: #ffcc00">create quiz</a>         </li>         <li class="nav-item">           <a class="nav-link" href="#">study</a>         </li>         <li class="nav-item dropdown">           <a class="nav-link dropdown-toggle" href="http://example.com" id="navbardropdownmenulink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">           maxwell gover           </a>           <div class="dropdown-menu" aria-labelledby="navbardropdownmenulink">             <a class="dropdown-item" href="#">action</a>             <a class="dropdown-item" href="#">another action</a>             <a class="dropdown-item" href="#">something else here</a>           </div>         </li>       </div>     </ul>   </nav> </div> 

css

.right {   float: right; } 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -