diff --git a/files/en-us/web/css/guides/display/multi-keyword_syntax/index.md b/files/en-us/web/css/guides/display/multi-keyword_syntax/index.md index e0570cbe9c1d14d..81632d98012f0ce 100644 --- a/files/en-us/web/css/guides/display/multi-keyword_syntax/index.md +++ b/files/en-us/web/css/guides/display/multi-keyword_syntax/index.md @@ -157,7 +157,7 @@ Change the selected option in the ` @@ -218,14 +218,14 @@ p { ``` -```html +```html live-sample___flow-root

The #child paragraph (nested in #parent).

The #sibling paragraph (sibling of #parent).

``` -{{EmbedLiveSample("display_block_flow-root_and_display_inline_flow-root", '90%', 380)}} +{{EmbedLiveSample("flow-root", '90%', 380)}} The `flow-root` value makes sense if you think about block and inline layout, which is sometimes called [normal flow](/en-US/docs/Learn_web_development/Core/CSS_layout/Introduction#normal_layout_flow). Our HTML page creates a new formatting context (floats and margins cannot extend out from the boundaries) and our content lays out in normal flow, using block and inline layout, unless we change the value of `display` to use some other formatting context. Creating a grid or flex container also creates a new formatting context (a grid or flex formatting context, respectively.) These also contain everything inside them. However, if you want to contain floats and margins but continue using block and inline layout, you can create a new flow root, and start over with block and inline layout. From that point downwards everything is contained inside the new flow root.