DISPLAY

Display is one of the most important CSS commands, it controls how an HTML tag is shown

There are:

  1. display:none;
  2. display:block;
  3. display:inline;
  4. display:inline-block;
  5. display:flex;
  6. display:grid;

Display:none; the element is ignored by the browser.

Display: block; creates an element like a box and is standard for all HTML-Elements. It also starts a new line and takes up the entire width. Has also properties such as: margin, border, padding, height and width.

Display: inline; This element is standard for span, img, a, b, etc. Unlike display:block; this element doesn't start a new line and reacts like plain text. It has no width and height, instead it takes the height and width of the contact.

Display: inline-block; It displays an Element as an inline element, but has properties like a block element. So basically it doesn't start a new line but it has widht and height, if they're specified.