How to clear the gap between header and navbar?


jsjsjs

There's a weird gap between the header image and the navbar and I don't know how to remove it!

The problem code itself .

<!-- some css settings -->
#banner {
    width: 100%;
    height: 100px;
    margin-bottom: 0;
    margin-top: 0;
}

#nav_bar {
    background-color: #202020;
    margin-bottom: 0;
    margin-top: 0;
    z-index: 100;
}
On

Personally, I just put negative numbers on the navbar so you're good to go:

#nav_bar {
    background-color: #202020;
    margin-bottom: 0;
    z-index: 999;
    margin-top: -4px;
}

https://codepen.io/anon/pen/VyMmRP

Related


How to clear the gap between header and navbar?

jsjsjs There's a weird gap between the header image and the navbar and I don't know how to remove it! The problem code itself . <!-- some css settings --> #banner { width: 100%; height: 100px; margin-bottom: 0; margin-top: 0; } #nav_bar {

How to clear the gap between header and navbar?

jsjsjs There's a weird gap between the header image and the navbar and I don't know how to remove it! The problem code itself . <!-- some css settings --> #banner { width: 100%; height: 100px; margin-bottom: 0; margin-top: 0; } #nav_bar {

How to clear the gap between header and navbar?

jsjsjs There's a weird gap between the header image and the navbar and I don't know how to remove it! The problem code itself . <!-- some css settings --> #banner { width: 100%; height: 100px; margin-bottom: 0; margin-top: 0; } #nav_bar {

How to clear the gap between header and navbar?

jsjsjs There's a weird gap between the header image and the navbar and I don't know how to remove it! The problem code itself . <!-- some css settings --> #banner { width: 100%; height: 100px; margin-bottom: 0; margin-top: 0; } #nav_bar {

How to clear the gap between header and navbar?

jsjsjs There's a weird gap between the header image and the navbar and I don't know how to remove it! The problem code itself . <!-- some css settings --> #banner { width: 100%; height: 100px; margin-bottom: 0; margin-top: 0; } #nav_bar {

Gap between header and navbar

Dave G. I have a problem headerwith the gap between navbar. I don't know how to get rid of this gap. I would appreciate if someone here would solve the problem. <!DOCTYPE html> <html lang=en> <html> <head> <script src=java.js"></script> <link

How to close the gap between objects in the navbar list?

Heber I'm trying to replicate apple.com's navbar. But I'm running into an issue where the list spreads far beyond the actual website. I would like to know what is causing this? I've tried margin/paddingthis list and it's the best I can think of. If the above d

How to fill the gap between navbar and div

User 9430427 Here I am new to Bootstrap please help me how to close the gap between navbar and div [![<nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" hre

How to close the gap between objects in the navbar list?

Heber I'm trying to replicate apple.com's navbar. But I'm running into an issue where the list spreads far beyond the actual website. I would like to know what is causing this? I've tried margin/paddingthis list and it's the best I can think of. If the above d

How to close the gap between objects in the navbar list?

Heber I'm trying to replicate apple.com's navbar. But I'm running into an issue where the list spreads far beyond the actual website. I would like to know what is causing this? I've tried margin/paddingthis list and it's the best I can think of. If the above d

How to close the gap between objects in the navbar list?

Heber I'm trying to replicate apple.com's navbar. But I'm running into an issue where the list spreads far beyond the actual website. I would like to know what is causing this? I've tried margin/paddingthis list and it's the best I can think of. If the above d

How to close the gap between objects in the navbar list?

Heber I'm trying to replicate apple.com's navbar. But I'm running into an issue where the list spreads far beyond the actual website. I would like to know what is causing this? I've tried margin/paddingthis list and it's the best I can think of. If the above d

Gap between Navbar and Jumbotron

DDK I'm building and I guess you can call a template for the site you're building, but I'm pretty new to bootstrap so it's hard to figure out which CSS rules affect elements etc. The problem I'm having is that I can't get the Jumbotron unit to sit flush with t

Gap between Navbar and Jumbotron

DDK I'm building and I guess you can call a template for the site you're building, but I'm pretty new to bootstrap so it's hard to figure out which CSS rules affect elements etc. The problem I'm having is that I can't get the Jumbotron unit to sit flush with t

Gap between Navbar and Jumbotron

DDK I'm building and I guess you can call templates for the site you're building, but I'm pretty new to bootstrap so it's hard to figure out which CSS rules affect elements etc. The problem I'm having is that I can't get the Jumbotron unit to sit flush with th

Clear the gap between controls

f855a864 JSFiddle I tried everything I could to close this gap, but still no success. I also tried setting padding to 0, but the gap remains. If I shrink, the gap will disappear, can't figure out why! Here 's the CSS for the last tdtag (the blue line creates t

Clear the gap between controls

f855a864 JSFiddle I tried everything I could to close this gap, but still no success. I also tried setting padding to 0, but the gap remains. If I shrink, the gap will disappear, can't figure out why! Here 's the CSS for the last tdtag (the blue line creates t

How to remove the gap between header and image slider

Vinit Jain Here is a simple page that I am trying to develop. I am completely new to html, css and jQuery. There is a header menu and below it is an image slider which I have coded using some youtube tutorials. The image fades in and out every 3 seconds. I hav

How to remove the gap between header and image slider

Vinit Jain Here is a simple page that I am trying to develop. I am completely new to html, css and jQuery. There is a header menu and below it is an image slider which I have coded using some youtube tutorials. The image fades in and out every 3 seconds. I hav