0

I have a problem, I have an empty div, taking 100% of the screen, and a footer. A border is appearing between them (it's a part of the body, so I guess there is some space between the both divs). enter image description here

The css is :

body {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 auto;
}

body {
    background-color: #292a2b;
}

.emptydiv {
    width: 100%;
    height: 100%;
    background-color: black;
    margin-top: 50px;
}

h1 {
    /*editing h1 just to add margin on the top; in this way the navbar won't hide it!*/
    text-align: center;
    color: white;
}
/* footer*/
#githublogo,
#instagram-logo {
    width: 50px;
    height: 50px;
}

footer {
    background-color: rgb(0, 0, 0);
    color: white;
    margin : 0;
    padding: 0;
}

footer a {
    text-decoration: underline;
}

I tried to add padding 0 and margin 0 to both div, didn't work, what should I try ? THanks !

Martijn Pieters
  • 963,270
  • 265
  • 3,804
  • 3,187
nonoom
  • 163
  • 1
  • 2
  • 12

0 Answers0