1

there are few bootstraps that it works with, like the default and the lumen bootstrap in this site: https://bootswatch.com/

but other bootstraps like materia and flatly. I have no idea why it looks like that:

http://www.interload.co.il/upload/1975618.PNG

edit: this is the navbar code

   <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li>@Html.ActionLink("Home", "Index", "Home")</li>
                <li>@Html.ActionLink("About", "About", "Home")</li>
                <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
            </ul>
        </div>
    </div>
</div>
3
  • 1
    make sure you have included bootstrap js file Commented Nov 12, 2018 at 8:30
  • @DeepakVerma how do i do that Commented Nov 12, 2018 at 8:42
  • can you show any working demo of your code so that i can help you better Commented Nov 12, 2018 at 9:30

1 Answer 1

1

As I saw in link you attached they use the latest version of bootstrap:

enter image description here

So you have to add bootstrap references to you start html file in the <head></head>(It looks like you need only js files)

bootstrap version 4.1.3 ref :

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
Sign up to request clarification or add additional context in comments.

3 Comments

I tried to add these lines inside the <head> element but it still doesn't work. I'm new to bootstrap and have no idea why it looks like that
How can I send it to you? I'm also new to stack overflow
It looks like you did not put all bootstrap classes:w3schools.com/bootstrap4/bootstrap_navbar.asp

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.