468,257 Members | 1,415 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

margin inheritance

This site:

http://www.westciv.com/style_master/...es/margin.html

states that "An element does not inherit the margin property of the
element which contains it." (under the "Is it inherited?" section).

Is that true? I thought it was the opposite. If true, can it be forced
using "margin:inherit"?

-- Richard
Jul 20 '05 #1
1 5624
Richard Barnet wrote:
[...] "An element does not inherit the margin property of the
element which contains it." [...]

Is that true?
Yes.
I thought it was the opposite. If true, can it be forced
using "margin:inherit"?


Yes.

8.3 Margin properties
http://www.w3.org/TR/REC-CSS2/box.ht...gin-properties

Value: <margin-width> | inherit
Inherited: no ^^^^^^^
^^^^^^^^^^^^^

HTH
Micha

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ian Rastall | last post: by
6 posts views Thread by Haines Brown | last post: by
22 posts views Thread by moocow | last post: by
12 posts views Thread by Eric Lindsay | last post: by
5 posts views Thread by shapper | last post: by
1 post views Thread by moondaddy | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.