remove the space using css code example Example: css remove whitespace around element body { margin:0px; } header { border:1px black solid; }