Navbar under jumbotron?

0

I'm creating a layout and I'm trying to put a navbar underneath a jumbotron but I can not. It turns out that jumbotron gets a space at the top and navbar gets a space between jumbotron .

How to solve this?

<!-- Header.cshtml to use as a Partial to include on main layout -->

<div class="jumbotron bg-red">
    <h1>My first layout</h1>
    <h3>Trying to create a layout using jumbotron and navbar</h3>
</div><!--jumbotron-->

<div class="navbar navbar-inverse navbar-static-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>
            <a href="@Url.Action("Index", "Home")" class="navbar-brand"><img src="~/Imagens/logo.png" width="32" height="32" title="Red Cherry" /></a>
        </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>
            @Html.Partial("_LoginPartial")
        </div>
    </div>
</div><!--nav bar-->

    
asked by anonymous 16.08.2017 / 20:22

1 answer

0

To solve this, you will have to tweak the CSS of the bootstrap, there is the property you are using if I am not mistaken, it has 48px of padding, it is only remove that solves the problem ... so once I even withdraw I do not know because more on the server locar was still with space, more when I sent the web server was was with the changes employed!

    
16.08.2017 / 20:34