View Single Post
  #5 (permalink)  
Old 07-24-2008, 12:30 PM
David Powers
 
Posts: n/a
Diggs:
Default Re: Centering <div> in 2008

Walt F. Schaefer wrote:
> margin: 0 auto;


For this to work, the element (<div>) needs a declared width. Without a
width, the element remains on the left of the page.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote