Properties are not inherited: : Inheritance « Style Basics « HTML / CSS






Properties are not inherited:

  

display, margin, border, padding, background, height, min-height, 
max-height, width, min-width, max-width, overflow, position, left, 
right, top, bottom, z-index, float, clear, table-layout, vertical-align, 
page-break-after, page-break-before, and unicode-bidi. 

   
  








Related examples in the same category

1.Inheritance in Action
2.property inheritance
3.Background is inherited
4.The following properties are inherited by all elements: visibility and cursor.
5.Properties are inherited by inline elements
6.Properties inherited by list elements: list-style, list-style-type, list-style-position, and list-style-image
7.Property inherited by table elements: border-collapse
8.Once you assign a background to an element, it no longer visually inherits the background of its parent
9.Inherit the background, padding, and border of the div tag
10.Working with Inheritance
11.Property Inheritance 2
12.Style overwrite
13.Inherit color and alignment from the div