Currently, I am enrolled in an online course where the instructor utilizes Bootstrap 4. However, I decided to challenge myself by using Bootstrap 5.1 instead.
I have been struggling with configuring my navigation bar elements to look like the ordered list on the right side. Despite going through the documentation thoroughly, I can't seem to pinpoint why it's not functioning as expected.
My current navigation bar setup looks like this: https://i.sstatic.net/BnNEC.png
Despite trying multiple variations such as:
-
<ul class="navbar-nav justify-content-end">
-
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
-
<ul class="navbar-nav ml-auto>
Additionally, could someone provide insights into what "me," "mb," and "ml" stand for? How can I align this to the right side using Bootstrap 5.0?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="23414c4c57505751425363160d120d12">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<title>Priyanka Giri</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3d5f5252494e494f5c4d7d08130c130c">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
<div class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="">Name ABC</a>
<ul class="navbar-nav ml-auto ml-2">
<li class="nav-item">
<a class="nav-link" href="">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="">Education</a>
</li>
<li class="nav-item">
<a class="nav-link" href="">Experience</a>
</li>
</ul>
</div>
</body>
</html>
UPDATE: ms-auto WORKED But what does this mean exactly? What did the above three mean?