Johnatan56
Honorary Master
Hi,
I currently working on a HTML website where I have made a div which contains the background(a 200x200 texture/image on repeat) and another div which forces the content within to be 990px and centered (specifications as per project requirement).
The issue I am having is that there is a white border around the site that I cannot get rid of. I have tried setting the margin to 0 with no success.
HTML:
CSS:
EDIT:
The problem looks like this:

I currently working on a HTML website where I have made a div which contains the background(a 200x200 texture/image on repeat) and another div which forces the content within to be 990px and centered (specifications as per project requirement).
The issue I am having is that there is a white border around the site that I cannot get rid of. I have tried setting the margin to 0 with no success.
HTML:
Code:
<div id="everything">
<div id="centerContainer">
</div>
</div>
CSS:
Code:
#everything{
height:100%;
width:100%;
margin: 0px;
background-image: url("textures/background.png");
}
#centercontainer{
margin: auto;
width: 60%;
max-width:990px;
background-color: grey;
height: 100%;
}
EDIT:
The problem looks like this:

Last edited:
