Topic: Centering content by applying style to Body tag (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28213" title="Pages that link to Topic: Centering content by applying style to Body tag (Page 1 of 1)" rel="nofollow" >Topic: Centering content by applying style to Body tag <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 07-15-2006 09:41

How do you center your content by applying style to just the body tag?

Karl..

HZR
Paranoid (IV) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 07-15-2006 13:32

Set a width and use margin: auto.

Something like

code:
body {
  width: 40em;
  margin: auto;
}



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu