Display and visibility

Display properties are some of the most widely used CSS features in web design and development.

Let's check them out.

all

The all CSS property resets an element's properties to its default values, and it looks like this:

all: initial;

Description

The only properties that are not reset are the direction and unicode-bidi properties, which control text direction. This is important because text direction is required to understand the content. If these properties were reset by the all property, then text would run the opposite way it's supposed to, disrupting the message completely.

This property supports three keyword values: initial, inherit, and unset.

  • initial: This changes all the properties of the element or the element's parent ...

Get Web Developer's Reference Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.