0

Background picture has margin top,left and right, trued to remove it with position absolute and relative, didn't worked what can true else to remove them.

HTML

<header class="banner"></header>

Css

banner {
  background-image: url(../images/banner.jpg);
  min-height: 750px;
  background-size: cover;
  background-position: center top; }

enter image description here

Viktor
  • 722
  • 1
  • 8
  • 25

3 Answers3

2

CSS

body {
padding:0;
margin:0;
}

You can use too reset.css;

http://meyerweb.com/eric/tools/css/reset/

clyz
  • 165
  • 10
1

This seems to be initial margin of HTML page. Remove it through CSS:

body{margin:0}
Ali Sheikhpour
  • 10,475
  • 5
  • 41
  • 82
1

This is being added by either the body or the header. Add the following to the CSS stylesheet:

body { margin: 0; }

Or, the same thing with the body replaced with header.

stuartmccoll
  • 188
  • 1
  • 11