I think I'm about to pull my hair out in frustration..
I'm setting up a new landing page template with a css I built from scratch, but I'm having a hell of a time getting the margins right.
It's a fairly simple looking page, with one main container div which contains three other sub-divs for things like header, content, and footer.
The content div has some left-aligned text and a table inside of it.
I can either:
a) get everything to look nice, with the table fitting nicely within the divs - BUT then everything is aligned to the left of the screen
b) get everything to align nicely centered on the screen - BUT then the table inside the content div looks like shit because it extends too far out on the right side of the div.
The problems occur in both FF and IE.
I looked around for some threads on this, but they only partially solved my centering and table-fitting issues.
Here is what I have used:
When I use this, everything is centered but the table is messed up:
When I use this, the table fits nicely but everything is left-aligned on screen:
+Rep to the one who posts a working solution! 
I'm setting up a new landing page template with a css I built from scratch, but I'm having a hell of a time getting the margins right.
It's a fairly simple looking page, with one main container div which contains three other sub-divs for things like header, content, and footer.
The content div has some left-aligned text and a table inside of it.
I can either:
a) get everything to look nice, with the table fitting nicely within the divs - BUT then everything is aligned to the left of the screen

b) get everything to align nicely centered on the screen - BUT then the table inside the content div looks like shit because it extends too far out on the right side of the div.

The problems occur in both FF and IE.
I looked around for some threads on this, but they only partially solved my centering and table-fitting issues.
Here is what I have used:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Code:
body{
text-align: center;
}
Code:
.container{
width: 600px;
margin: 0 auto;
text-align: left;
display: block
}
Code:
.container{
width: 600px;
margin: 0 auto;
text-align: left;
display: table-cell
}
