ketom ketom - 6 months ago 29
HTML Question

Bootstrap css fixed header no space

I have a page (Number 2 on image).
I want to fixing the header, but the container was under the header.
I dont understand why.

The Number 1 image is an example code. There is good.

Whats wrong?
I hope someone can help me! Thanks
(Laravel 5)

enter image description here

My page:

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">


<!-- Fonts -->
<link href="" rel='stylesheet' type='text/css'>
<link href=",300,400,700" rel='stylesheet' type='text/css'>

<!-- Styles -->
<link href="" rel="stylesheet">

body {
font-family: 'Lato';

.fa-btn {
margin-right: 6px;
<body id="app-layout">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">

<!-- Collapsed Hamburger -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>

<!-- Branding Image -->
<a class="navbar-brand" href="">

<div class="collapse navbar-collapse" id="app-navbar-collapse">
<!-- Left Side Of Navbar -->
<ul class="nav navbar-nav">
<li><a href="">Home</a></li>

<!-- Right Side Of Navbar -->
<ul class="nav navbar-nav navbar-right">
<!-- Authentication Links -->
<li><a href="">Login</a></li>
<li><a href="">Register</a></li>

<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Welcome</div>

<div class="panel-body">
Your Application's Landing Page.

<!-- JavaScripts -->
<script src=""></script>
<script src=""></script>



Maybe this solution wil be helpfull JSFIDLE

UPDATE: Smarties way will be to add new class with row div so your bootstrap css stay untouched.

    margin-right: -15px;
    margin-left: -15px;
    padding-top: 70px;