maya wrote:
>
at work they decided to center divs thus:
body {text-align:center}
#content {width: 612px; text-align:left; margin: 0 auto 0 auto; }
this works fine in IE & FF, EXCEPT in FF it doesn't work if I change
'auto' to 0 for left and right margin values; I have to leave those at
'auto'.. so I would like to know what exactly means 'auto' -- what
value it represents exactly (and does it apply for all elements/values
you might apply 'auto' to?)
It doesn't represent a value exactly. It means that you are leaving it
to the browser to figure out the best value. Of margin-left,
border-left, padding-left, width, padding-right, border-right, and
margin-right, if you specify measures for some and auto for the others,
the browser works out the autos as it thinks most suitable.