“So rechnen Sie die NAV -Elemente in Bootstrap 5 aus” Code-Antworten

Navigbar rechts ausrichten Bootstrap 5

ml-auto => ms-auto (start)
mr-auto => me-auto (end)
Curious Crab

Richten Sie in Bootstrap 4 die Navigationsstärke rechts rechts aus

<!DOCTYPE html>
<html>
  
<head>
  
    <!-- Including the bootstrap CDN -->
    <link rel="stylesheet" href=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
    <script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js">
    </script>
    <script src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js">
    </script>
    <script src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js">
    </script>
</head>
  
<body>
  
    <!-- Creating a navigation bar using the
         .navbar class of bootstrap -->
    <nav class="navbar navbar-expand-sm bg-light">
  
        <ul class="navbar-nav ml-auto">
            <li class="nav-item">
                <a class="nav-link" href="#">
                  About
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">
                  Contacts
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">
                  Settings
                </a>
            </li>
        </ul>
    </nav>
</body>
  
</html>
Alert Alpaca

So rechnen Sie die NAV -Elemente in Bootstrap 5 aus

Use ms-auto inside navbar-nav class. => <ul className="navbar-nav ms-auto">
Aryamitra Chaudhuri

Ähnliche Antworten wie “So rechnen Sie die NAV -Elemente in Bootstrap 5 aus”

Fragen ähnlich wie “So rechnen Sie die NAV -Elemente in Bootstrap 5 aus”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen