Files
freeCodeCamp/guide/english/css/properties/display-property/index.md
2018-10-16 21:32:40 +05:30

1.0 KiB

title
title
Display Property

Display Property

The display property specifies the type of box used for an HTML element. It has 20 possible keyword values. The commonly used ones are:

    .none             {display: none;}
    .block            {display: block;}
    .inline-block     {display: inline-block;}
    .inline           {display: inline;}
    .flex             {display: flex;}
    .inline-flex      {display: inline-flex;}
    .inline-table     {display: inline-table;}
    .table            {display: table;}
    .inherit          {display: inherit;}
    .initial          {display: initial;}

More Information:

Docs and full list of keyword values: MDN

Browser Support: caniuse

A Complete Guide to Flexbox: css-tricks