HighDots Forums  

margin inheritance

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss margin inheritance in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Barnet
 
Posts: n/a

Default margin inheritance - 08-05-2003 , 01:01 PM






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



Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: margin inheritance - 08-05-2003 , 01:55 PM






Richard Barnet wrote:

Quote:
[...] "An element does not inherit the margin property of the
element which contains it." [...]

Is that true?
Yes.

Quote:
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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.