Display

Estimated reading: 1 minute 17 views

You can control how an element is displayed with the display property

 display: value;

Values:

  • List
  • block
  • inline
  • list-item
  • none

Block
Creates a line break before and after the element
Inline
No line break is created
List Item
Creates a line break before and after the element and adds a list item
marker
None
Makes an element not display on the page

Share this Doc

Display

Or copy link