joseph joseph - 4 years ago 80
CSS Question

How to make a border in css that is actually on the very edges

I'm trying to make a CSS border that is on the very edge of the page.
So far I have:

body{
color:#008000;
background-color: blanchedalmond;
border: 5px solid #000080;
}


This does create a border, however, between that border and the sides, top, and bottom, of my browser, there's another small area [equal size for all sides] that is just the background color of the page. I want this area to go away. I'm using Chrome, by the way.

Answer Source

Try this...

body{ 
color:#008000;
background-color: blanchedalmond;
border: 5px solid #000080;
margin:0;
padding:0;
}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download