DEV Community


Posted on

Reading Snippets [40 => CSS ] 🎨

Display is considered to be the most important property in CSS. All elements have default display values.

The default display value for an element is dependent on the type of element. Most elements have display values of block or inline.

A block element is usually called a block-level element. An inline element is always just called an inline element.

Setting display to none is different from visibility. It renders the page as though the element does not exist.

Setting visibility to hidden results in the element being hidden but still taking up space that it would if it was fully visible.

Source:Learn Layout

Top comments (0)