Home | All Questions | alt.html FAQ >

How do I set the page margins in CSS?

Use CSS, put this in your <head> :

<style type="text/css">
body {
 margin-top: 0;
 margin-bottom: 0;
 margin-right: 0;
 margin-left: 0;

Change the 0 to whatever. If you want the margins to be the same all around you can just use margin: 0;

Recommended Resources


Related Questions