Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Mario Lopes
Added: Sep 7, 2018 9:34 AM
Views: 31
Código para colocar cor em bootstrap
  1.  
  2. <nav class="navbar navbar-expand-lg navbar-dark " style="background-color: #0000FF;">
  3.   <a class="navbar-brand" href="#">Navbar</a>
  4.   <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  5.     <span class="navbar-toggler-icon"></span>
  6.   </button>
  7.  
  8.   <div class="collapse navbar-collapse" id="navbarSupportedContent">
  9.     <ul class="navbar-nav mr-auto">
  10.       <li class="nav-item active">
  11.         <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
  12.       </li>
  13.       <li class="nav-item">
  14.         <a class="nav-link" href="#">Link</a>
  15.       </li>
  16.       <li class="nav-item dropdown">
  17.         <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  18.           Dropdown
  19.         </a>
  20.         <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  21.           <a class="dropdown-item" href="#">Action</a>
  22.           <a class="dropdown-item" href="#">Another action</a>
  23.           <div class="dropdown-divider"></div>
  24.           <a class="dropdown-item" href="#">Something else here</a>
  25.         </div>
  26.       </li>
  27.       <li class="nav-item">
  28.         <a class="nav-link disabled" href="#">Disabled</a>
  29.       </li>
  30.     </ul>
  31.     <form class="form-inline my-2 my-lg-0">
  32.       <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
  33.       <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  34.     </form>
  35.   </div>
  36. </nav>
  37.  
  38.