Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed CSS Basics!
You have completed CSS Basics!
Preview
You might have seen the term inheritance used regarding certain CSS properties. Inherited properties in CSS means that an HTML element’s style values are copied from its parent (or containing) element.
Further reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
CSS properties. Inherited properties
in CSS means that an HTML element's
0:00
style values are copied from its
parent or containing element.
0:02
A good example of inheritance in a CSS
property is with the color property.
0:09
If a color value is applied
to an element,
0:15
any child of that element will
inherit that color value.
0:18
The one exception is the text
color in links since
0:23
browsers assign specific
color styles for those.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up