Topic: Centering content by applying style to Body tag |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Phoenix |
posted 07-15-2006 09:41
How do you center your content by applying style to just the body tag? |
Paranoid (IV) Inmate From: Cold Sweden |
posted 07-15-2006 13:32
Set a width and use margin: auto. code: body { width: 40em; margin: auto; } |