Skip to content

Commit

Permalink
fixing syntax (mdn#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelandrew authored Feb 24, 2021
1 parent ff140e0 commit 4ae4943
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions files/en-us/web/css/display/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,47 @@

<h2 id="Syntax">Syntax</h2>

<p>The CSS <code>display</code> property is specified using keyword values. Keyword values are grouped into six value categories:</p>

<pre class="brush: css">.container {
display: [ &lt;display-outside&gt; | &lt;display-inside&gt; ] | &lt;display-listitem&gt; | &lt;display-internal&gt; | &lt;display-box&gt; | &lt;display-legacy&gt; ;
}
<p>The CSS <code>display</code> property is specified using keyword values.</p>

<pre class="brush: css">/* legacy values */
display: block;
display: inline;
display: inline-block;
display: flex;
display: inline-flex;
display: grid;
display: inline-grid;
display: flow-root;

/* box generation */
display: none;
display: contents;

/* two-value syntax */
display: block flow;
display: inline flow;
display: inline flow-root;
display: block flex;
display: inline-flex;
display: block grid;
display: inline grid;
display: block flow-root;

/* other values */
display: table;
display: table-row; /* all table elements have an equivalent CSS display value */
display: list-item;

/* Global values */
display: inherit;
display: initial;
display: unset;
</pre>

<h2 id="Grouped_values">Grouped values</h2>

<p>The keyword values can be grouped into six value categories.</p>

<h3 id="Outside">Outside</h3>

<dl>
Expand Down

0 comments on commit 4ae4943

Please sign in to comment.