Topic: Centering content by applying style to Body tag 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" rel="nofollow" >Topic: Centering content by applying style to Body tag\

 
Author Thread
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 07-15-2006 09:41 Edit Quote

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

IP logged posted posted 07-15-2006 13:32 Edit Quote

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