Viktor Viktor - 3 years ago 217
HTML Question

Background picture has margin top,left,right how to remove it

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.


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


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

enter image description here

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download