Re: paragraph spacing in different browsers
by Jens Brueckmann <lists(at)j-a-b.net>
|
Date: |
Tue, 13 Jan 2004 23:21:05 +0100 |
To: |
fatgraffix <info(at)fatgraffix.com>, "hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org> |
References: |
kontent 2 |
|
todo: View
Thread,
Original
|
|
On Tue, 13 Jan 2004 13:51:23 -0800, fatgraffix <info(at)fatgraffix.com> wrote:
> got it - but what's ' margin: auto; ' do?
if you do not let the paragraph stretch over the full width of the
viewport [1] but let it have a width of say, 60%, the margin value "auto"
makes the user agent calculate the available margin on all sides of the
element and attributes equal values to opposite sides automatically.
Thence the name of this value.
In other words: This value centres your paragraph when it has less than
100% width.
Cheers,
jens
[1] http://www.w3.org/TR/CSS21/visuren.html#q2
--
Jens Brueckmann
http://www.j-a-b.net/
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA