{"id":63351,"date":"2019-04-09T04:15:11","date_gmt":"2019-04-09T11:15:11","guid":{"rendered":"http:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/"},"modified":"2019-04-09T04:15:11","modified_gmt":"2019-04-09T11:15:11","slug":"digging-into-the-display-property-the-two-values-of-display","status":"publish","type":"post","link":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/","title":{"rendered":"Digging Into The Display Property: The Two Values Of Display"},"content":{"rendered":"<link rel=\"canonical\" href=\"https:\/\/www.smashingmagazine.com\/2019\/04\/display-two-value\/\"><title>Digging Into The Display Property: The Two Values Of Display<\/title><\/p>\n<article>\n<header>\n<h1>Digging Into The Display Property: The Two Values Of Display<\/h1>\n<address>Rachel Andrew<\/address>\n<p>                  <time datetime=\"2019-04-08T13:00:59+02:00\">2019-04-08T13:00:59+02:00<\/time><time datetime=\"2019-04-09T11:06:18+00:00\">2019-04-09T11:06:18+00:00<\/time><\/header>\n<p>A flex or grid layout starts out with you declaring <code>display: flex<\/code> or <code>display: grid<\/code>. These layout methods are values of the CSS <code>display<\/code> property. We tend not to talk about this property on its own very much, instead concentrating on the values of <code>flex<\/code> or <code>grid<\/code>, however, there are some interesting things to understand about <code>display<\/code> and how it is defined that will make your life much easier as you use CSS for layout.<\/p>\n<p>In this article, the first in a short series, I\u2019m going to take a look at the way that the values of <code>display<\/code> are defined in the Level 3 specification. This is a change to how we defined <code>display<\/code> in earlier versions of CSS. While it may seem unusual at first for those of us who have been doing CSS for many years, I think these changes really help to explain what is going on when we change the value of <code>display<\/code> on an element.<\/p>\n<h3>Block And Inline Elements<\/h3>\n<p>One of the first things we teach people who are new to CSS are the concepts of block and inline elements. We will explain that some elements on the page are <code>display: block<\/code> and they have certain features because of this. They stretch out in the inline direction, taking up as much space as is available to them. They break onto a new line; we can give them width, height, margin as well as padding, and these properties will push other elements on the page away from them.<\/p>\n<p>We also know that some elements are <code>display: inline<\/code>. Inline elements are like words in a sentence; they don\u2019t break onto a new line, but instead reserve a character of white space between them. If you add margins and padding, this will display but it won\u2019t push other elements away.<\/p>\n<p>The behavior of block and inline elements is fundamental to CSS and the fact that a properly marked up HTML document will be readable by default. This layout is referred to as \u201cBlock and Inline Layout\u201d or \u201cNormal Flow\u201d because this is the way that elements lay themselves out if we don\u2019t do anything else to them.<\/p>\n<div data-component=\"FeaturePanel\" data-audience=\"non-subscriber\" data-remove=\"true\"><\/div>\n<h3>Inner And Outer Values Of <code>display<\/code><\/h3>\n<p>We understand block and inline elements, but what happens if we make an item <code>display: grid<\/code>? Is this something completely different? If we look at a component on which we have specified <code>display: grid<\/code>, in terms of the parent element in the layout it behaves like a <code>block level<\/code> element. The element will stretch out and take up as much space in the inline dimension as is available, it will start on a new line. It behaves just like a <code>block<\/code> element in terms of how it behaves alongside the rest of the layout. We haven\u2019t said <code>display: block<\/code> though, or have we?<\/p>\n<p>It turns out that we have. In <a href=\"https:\/\/www.w3.org\/TR\/css-display-3\">Level 3 of the Display specification<\/a>, the value of <code>display<\/code> is defined as two keywords. These keywords define the outer value of display, which will be <code>inline<\/code> or <code>block<\/code> and therefore define how the element behaves in the layout alongside other elements. They also define the inner value of the element \u2014 or how the direct children of that element behave.<\/p>\n<p>This means that when you say <code>display: grid<\/code>, what you are really saying is <code>display: block grid<\/code>. You are asking for a block level grid container. An element that will have all of the block attributes \u2014 you can give it height and width, margin and padding, and it will stretch to fill the container. The children of that container, however, have been given the inner value of <code>grid<\/code> so they become grid items. How those grid items behave is defined in the CSS Grid Specification: the <code>display<\/code> spec gives us a way to tell the browser that this is the layout method we want to use.<\/p>\n<p>I think that this way of thinking about <code>display<\/code> is incredibly helpful; it directly explains what we are doing with various layout methods. If you were to specify <code>display: inline flex<\/code>, what would you expect? Hopefully, a box that behaves as an inline element, with children that are flex items.<\/p>\n<p>There are a few other things neatly explained by thinking about <code>display<\/code> in this new way, and I\u2019ll take a look at some of these in the rest of this article.<\/p>\n<h3>We Are Always Going Back To Normal Flow<\/h3>\n<p>When thinking about these inner and outer display properties, it can be helpful to consider what happens if we don\u2019t mess around with the value of display at all. If you write some HTML and view it in a browser, what you get is Block and Inline Layout, or Normal Flow. The elements display as <code>block<\/code> or <code>inline<\/code> elements.<\/p>\n<figure>\n<p data-height=\"500\" data-theme-id=\"light\" data-slug-hash=\"ZZzPQE\" data-user=\"rachelandrew\" data-default-tab=\"result\">See the Pen <a href=\"https:\/\/www.smashingmagazine.com\/articles\/\">Block and Inline Layout<\/a> by <a href=\"https:\/\/codepen.io\/rachelandrew\">Rachel Andrew<\/a>.<\/p><figcaption><a href=\"https:\/\/www.smashingmagazine.com\/articles\/#ZgotmplZ\">See on Codepen<\/a><\/figcaption><\/figure>\n<p>The example below contains some markup that I have turned into a media object, by making the <code>div<\/code> <code>display: flex<\/code> (the two direct children) now become flex items, so the image is now in a row with the content. If you see in the content, however, there is a heading and a paragraph which are displaying in normal flow again. The direct children of the media object became flex items; <em>their<\/em> children return to normal flow unless we change the value of display on the flex item. The flex container itself is a block box, as you can see by the fact the border extends to the edge of its parent.<\/p>\n<figure>\n<p data-height=\"500\" data-theme-id=\"light\" data-slug-hash=\"gyYEPz\" data-user=\"rachelandrew\" data-default-tab=\"result\">See the Pen <a href=\"https:\/\/www.smashingmagazine.com\/articles\/\">Block and Inline Layout With Flex Component<\/a> by <a href=\"https:\/\/codepen.io\/rachelandrew\">Rachel Andrew<\/a>.<\/p><figcaption><a href=\"https:\/\/www.smashingmagazine.com\/articles\/#ZgotmplZ\">See on Codepen<\/a><\/figcaption><\/figure>\n<p>If you work with this process, the fact that elements on your page will lay themselves out with this nice readable normal flow layout, rather than fighting against it and trying to place everything, CSS is much easier. You are also less likely to fall into accessibility issues, as you are working with the document order, which is exactly what a screen reader or a person tabbing through the document is doing.<\/p>\n<div><\/div>\n<h4>Explaining <code>flow-root<\/code> And <code>inline-block<\/code><\/h4>\n<p>The value of <code>inline-block<\/code> is also likely to be familiar to many of us who have been doing CSS for a while. This value is a way to get some of the block behavior on an <code>inline<\/code> element. For example, an <code>inline-block<\/code> element can have a width and a height. An element with <code>display: inline-block<\/code> also behaves in an interesting way in that it creates a <strong>B<\/strong>lock <strong>F<\/strong>ormatting <strong>C<\/strong>ontent (BFC).<\/p>\n<p>A BFC does some useful things in terms of layout, for example, it contains floats. To read about Block Formatting Contexts in more detail see my previous article \u201c<a href=\"https:\/\/www.smashingmagazine.com\/2017\/12\/understanding-css-layout-block-formatting-context\/\">Understanding CSS Layout And The Block Formatting Context<\/a>.\u201d Therefore saying <code>display: inline-block<\/code> gives you an inline box which also establishes a BFC.<\/p>\n<p>As you will discover (if you read the above-mentioned article about the Block Formatting Context), there is a newer value of display which also explicitly creates a BFC. This is the value of <code>flow-root<\/code>. This value creates a BFC on a block, rather than an inline element.<\/p>\n<ul>\n<li><code>display: inline-block<\/code> gives you a BFC on an inline box.<\/li>\n<li><code>display: flow-root<\/code> gives you a BFC on a block box.<\/li>\n<\/ul>\n<p>You are now probably thinking that is all a bit confusing: why do we have two completely different keywords here, and what happened to the two-value syntax we were talking about before? This leads neatly into the next thing I need to explain about <code>display<\/code>, i.e. the fact that CSS has a history we need to deal with in terms of the <code>display<\/code> property.<\/p>\n<h3>Legacy Values Of Display<\/h3>\n<p>The CSS2 Specification detailed the following values for the <code>display<\/code> property:<\/p>\n<ul>\n<li><code>inline<\/code><\/li>\n<li><code>block<\/code><\/li>\n<li><code>inline-block<\/code><\/li>\n<li><code>list-item<\/code><\/li>\n<li><code>none<\/code><\/li>\n<li><code>table<\/code><\/li>\n<li><code>inline-table<\/code><\/li>\n<\/ul>\n<p>Also defined were the various table internal properties such as <code>table-cell<\/code> which we are not dealing with in this article.<\/p>\n<p>We then added to these some values for display, to support flex and grid layout:<\/p>\n<ul>\n<li><code>grid<\/code><\/li>\n<li><code>inline-grid<\/code><\/li>\n<li><code>flex<\/code><\/li>\n<li><code>inline-flex<\/code><\/li>\n<\/ul>\n<p><strong>Note<\/strong>: <em>The specification also defines <code>ruby<\/code> and <code>inline-ruby<\/code> to support Ruby Text which you can read about in the <a href=\"https:\/\/drafts.csswg.org\/css-ruby-1\/#ruby-def\">Ruby specification<\/a>.<\/em><\/p>\n<div><\/div>\n<p>These are all single values for the <code>display<\/code> property, defined before the specification was updated to explain CSS Layout in this way. Something very important about CSS is the fact that we don\u2019t go around breaking the web; <strong>we can\u2019t simply change things<\/strong>. We can\u2019t suddenly decide that everyone should use this new two-value syntax and therefore every website ever built that used the single value syntax will break unless a developer goes back and fixes it!<\/p>\n<p>While thinking about this problem, you may enjoy this <a href=\"https:\/\/wiki.csswg.org\/ideas\/mistakes\">list of mistakes in the design of CSS<\/a> which are less mistakes in many cases as things that were designed without a crystal ball to see into the future! However, the fact is that we can\u2019t break the web, which is why we have this situation where right now browsers support a set of single values for display, and the specification is moving to two values for display.<\/p>\n<p>The way we get around this is to specify legacy and short values for display, which includes all of these single values. This means that a mapping can be defined between single values and new two keyword values. Which gives us the following table of values:<\/p>\n<table>\n<thead>\n<tr>\n<th>Single Value<\/th>\n<th>Two-Keyword Values<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>block<\/code><\/td>\n<td><code>block flow<\/code><\/td>\n<td>Block box with normal flow inner<\/td>\n<\/tr>\n<tr>\n<td><code>flow-root<\/code><\/td>\n<td><code>block flow-root<\/code><\/td>\n<td>Block box defining a BFC<\/td>\n<\/tr>\n<tr>\n<td><code>inline<\/code><\/td>\n<td><code>inline flow<\/code><\/td>\n<td>Inline box with normal flow inner<\/td>\n<\/tr>\n<tr>\n<td><code>inline-block<\/code><\/td>\n<td><code>inline flow-root<\/code><\/td>\n<td>Inline box defining a BFC<\/td>\n<\/tr>\n<tr>\n<td><code>list-item<\/code><\/td>\n<td><code>block flow list-item<\/code><\/td>\n<td>Block box with normal flow inner and additional marker box<\/td>\n<\/tr>\n<tr>\n<td><code>flex<\/code><\/td>\n<td><code>block flex<\/code><\/td>\n<td>Block box with inner flex layout<\/td>\n<\/tr>\n<tr>\n<td><code>inline-flex<\/code><\/td>\n<td><code>inline flex<\/code><\/td>\n<td>Inline box with inner flex layout<\/td>\n<\/tr>\n<tr>\n<td><code>grid<\/code><\/td>\n<td><code>block grid<\/code><\/td>\n<td>Block box with inner grid layout<\/td>\n<\/tr>\n<tr>\n<td><code>inline-grid<\/code><\/td>\n<td><code>inline grid<\/code><\/td>\n<td>Inline box with inner grid layout<\/td>\n<\/tr>\n<tr>\n<td><code>table<\/code><\/td>\n<td><code>block table<\/code><\/td>\n<td>Block box with inner table layout<\/td>\n<\/tr>\n<tr>\n<td><code>inline-table<\/code><\/td>\n<td><code>inline table<\/code><\/td>\n<td>Inline box with inner table layout<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To explain how this works, we can think about a grid container. In the two-value world, we would create a block level grid container with:<\/p>\n<pre><code>.container {\n    display: block grid;\n}\n<\/code><\/pre>\n<p>However, the legacy keyword means that the following does the same thing:<\/p>\n<pre><code>.container {\n    display: grid;\n}\n<\/code><\/pre>\n<p>If, instead, we wanted an inline grid container, in the two-value world we would use:<\/p>\n<pre><code>.container {\n    display: inline grid;\n}\n<\/code><\/pre>\n<p>And if using the legacy values:<\/p>\n<pre><code>.container {\n    display: inline-grid;\n}\n<\/code><\/pre>\n<p>We can now go back to where this conversation began and look at <code>display: inline-block<\/code>. Looking at the table, you can see that this is defined in the two-value world as <code>display: inline flow-root<\/code>. It now matches <code>display: flow-root<\/code> which in a two-value world would be <code>display: block flow-root<\/code>. A little bit of tidying up and clarification of how these things are defined. A refactoring of CSS, if you like.<\/p>\n<h3>Browser Support For The Two-Value Syntax<\/h3>\n<p>As yet, browsers do not support the two-value syntax for the <code>display<\/code> property. The implementation bug for Firefox can be found <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1038294\">here<\/a>. Implementation \u2014 when it happens \u2014 would essentially involve aliasing the legacy values to the two-value versions. It\u2019s likely to be a good while, therefore, before you can actually use these two-value versions in your code. However, that really isn\u2019t the point of this article. Instead, I think that looking at the values of display in the light of the two-value model helps explain much of what is going on.<\/p>\n<p>When you define layout on a box in CSS, you are defining what happens to this box in terms of <strong>how it behaves in relation to all of the other boxes in the layout<\/strong>. You are also defining how the <em>children<\/em> of that box behave. You can think in this way long before you can explicitly declare the values as two separate things, as the legacy keywords map to those values, and it will help you understand what happens when you change the value of <code>display<\/code>.<\/p>\n<div>\n  <img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-6.png?w=900\" alt=\"Smashing Editorial\"><span>(il)<\/span>\n<\/div>\n<\/article>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Digging Into The Display Property: The Two Values Of Display Digging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00 A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this&#8230;<a class=\"moretag\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/\"> Read the full article&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":63352,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[371],"tags":[],"class_list":["post-63351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-user-experience"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Guest Contribution\"\/>\n\t<meta name=\"keywords\" content=\"user experience\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies\" \/>\n\t\t<meta property=\"og:description\" content=\"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-04-09T11:15:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-04-09T11:15:11+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#article\",\"name\":\"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies\",\"headline\":\"Digging Into The Display Property: The Two Values Of Display\",\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/logo-red-6.png?fit=60%2C80&ssl=1\",\"width\":60,\"height\":80},\"datePublished\":\"2019-04-09T04:15:11-07:00\",\"dateModified\":\"2019-04-09T04:15:11-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#webpage\"},\"articleSection\":\"User Experience\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"name\":\"User Experience\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"position\":2,\"name\":\"User Experience\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#listItem\",\"name\":\"Digging Into The Display Property: The Two Values Of Display\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#listItem\",\"position\":3,\"name\":\"Digging Into The Display Property: The Two Values Of Display\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"name\":\"User Experience\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/\",\"name\":\"Guest Contribution\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Guest Contribution\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#webpage\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/\",\"name\":\"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies\",\"description\":\"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/logo-red-6.png?fit=60%2C80&ssl=1\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#mainImage\",\"width\":60,\"height\":80},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/digging-into-the-display-property-the-two-values-of-display\\\/#mainImage\"},\"datePublished\":\"2019-04-09T04:15:11-07:00\",\"dateModified\":\"2019-04-09T04:15:11-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies","description":"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on","canonical_url":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/","robots":"max-image-preview:large","keywords":"user experience","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#article","name":"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies","headline":"Digging Into The Display Property: The Two Values Of Display","author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-6.png?fit=60%2C80&ssl=1","width":60,"height":80},"datePublished":"2019-04-09T04:15:11-07:00","dateModified":"2019-04-09T04:15:11-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#webpage"},"isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#webpage"},"articleSection":"User Experience"},{"@type":"BreadcrumbList","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.taterboy.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","name":"User Experience"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","position":2,"name":"User Experience","item":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#listItem","name":"Digging Into The Display Property: The Two Values Of Display"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#listItem","position":3,"name":"Digging Into The Display Property: The Two Values Of Display","previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","name":"User Experience"}}]},{"@type":"Organization","@id":"https:\/\/www.taterboy.com\/blog\/#organization","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","url":"https:\/\/www.taterboy.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author","url":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/","name":"Guest Contribution","image":{"@type":"ImageObject","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g","width":96,"height":96,"caption":"Guest Contribution"}},{"@type":"WebPage","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#webpage","url":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/","name":"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies","description":"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#breadcrumblist"},"author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"creator":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-6.png?fit=60%2C80&ssl=1","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#mainImage","width":60,"height":80},"primaryImageOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/#mainImage"},"datePublished":"2019-04-09T04:15:11-07:00","dateModified":"2019-04-09T04:15:11-07:00"},{"@type":"WebSite","@id":"https:\/\/www.taterboy.com\/blog\/#website","url":"https:\/\/www.taterboy.com\/blog\/","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","og:type":"article","og:title":"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies","og:description":"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on","og:url":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/","article:published_time":"2019-04-09T11:15:11+00:00","article:modified_time":"2019-04-09T11:15:11+00:00","twitter:card":"summary","twitter:title":"Digging Into The Display Property: The Two Values Of Display | Design for Immersive Technologies","twitter:description":"Digging Into The Display Property: The Two Values Of DisplayDigging Into The Display Property: The Two Values Of Display Rachel Andrew 2019-04-08T13:00:59+02:002019-04-09T11:06:18+00:00A flex or grid layout starts out with you declaring display: flex or display: grid. These layout methods are values of the CSS display property. We tend not to talk about this property on"},"aioseo_meta_data":{"post_id":"63351","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2021-02-07 21:05:02","updated":"2026-09-01 08:22:17","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/\" title=\"User Experience\">User Experience<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDigging Into The Display Property: The Two Values Of Display\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.taterboy.com\/blog"},{"label":"User Experience","link":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/"},{"label":"Digging Into The Display Property: The Two Values Of Display","link":"https:\/\/www.taterboy.com\/blog\/2019\/04\/digging-into-the-display-property-the-two-values-of-display\/"}],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8wzr5-gtN","jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-6.png?fit=60%2C80&ssl=1","_links":{"self":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/63351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/comments?post=63351"}],"version-history":[{"count":0,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/63351\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media\/63352"}],"wp:attachment":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media?parent=63351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/categories?post=63351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/tags?post=63351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}