Home >Web Front-end >CSS Tutorial >What categories can css attributes be divided into?
CSS properties can be divided into two categories: inheritable properties and non-inheritable properties. Inheritable attributes include: visibility, cursor, line-height, etc.; non-inheritable attributes include display, margin, border, etc.
CSS properties can be divided into two categories based on inheritance, namely: inheritable properties and non-inheritable properties.
(Learning video sharing: css video tutorial)
1. Inheritable attributes
All tags can be inherited:
visibility: line height
##height, min-height, max-height, width, min-width, max-width
overflow (hide the content of the redundant part of the label), position, left, right, top, bottom, z-index
Related recommendations:
CSS tutorialThe above is the detailed content of What categories can css attributes be divided into?. For more information, please follow other related articles on the PHP Chinese website!