Autocenter main container with css div

CyberAP

New Member
I am trying to have the main container of my site to center automatically when the explorer window is bigger, or to stick to the left whenever the explorer window is narrowed.How would I achieve that with CSS?Most sites do it nowadays, bloomingdales.com for example. When you make your browser smaller, the main container stays on the left, and as soon as you open your browser on the right side, the main container automatically gets centered. Thanks!My site: www.tahara.esADDING CSS:\[code\]body {margin: 0 auto;font-size: 11px;font-family: Arial,Helvetica,Verdana,Sans-serif;color: black;font-weight: normal;}.mainContainer{position: absolute;width: 850px;min-width: 850px;margin: 0 auto;border: 0;}\[/code\]
 
Back
Top