{"id":28106,"date":"2019-10-30T00:56:00","date_gmt":"2019-10-29T23:56:00","guid":{"rendered":"https:\/\/blexin.com\/layout-web-con-css-grid\/"},"modified":"2021-05-20T18:49:47","modified_gmt":"2021-05-20T16:49:47","slug":"layout-web-with-css-grid","status":"publish","type":"post","link":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/","title":{"rendered":"Layout web con CSS Grid"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"608\" data-attachment-id=\"28081\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&amp;ssl=1\" data-orig-size=\"1024,608\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"9bf31097-d4b2-41b4-b7f4-e73e8d06e864\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?resize=1024%2C608&#038;ssl=1\" alt=\"\" class=\"wp-image-28081\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png 1024w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864-980x582.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864-480x285.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the year 2009, after a long transition period separating us from the use of charts and the launch of style sheets, the period of \u201cFlash and Silverlight\u201d was about to finish. New ways to easily develop the web layouts with an engaging design had to be found. On the web, some new tools started to make their way, like the CSS Frameworks&nbsp;<strong>Blueprint CSS<\/strong>,&nbsp;<strong>Yui Grids<\/strong>&nbsp;and the renowned&nbsp;<strong>960 Grid System<\/strong>&nbsp;(also called&nbsp;<strong>960gs<\/strong>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They all had brought to the WebDesign world the idea of \u201cgrid\u201d, taken directly from the graphic design sector. We already know how the story goes on: with the arrival of the \u201cresponsive design\u201d, new frameworks were created, like&nbsp;<strong>Bootstrap<\/strong>,&nbsp;<strong>Foundation<\/strong>,&nbsp;<strong>UI Kit<\/strong>,&nbsp;<strong>Skeleton<\/strong>,&nbsp;<strong>Pure.css<\/strong>&nbsp;and so on. They were provided with a fluid grid that can adapt itself to the display of the uncountable devices available on the market.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The necessity&nbsp;is clear: we need a flexible grid to design interfaces for the web.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The use of CSS Frameworks involves massive use of purely structural markup elements inserted in the HTML, that get the code &#8220;dirty&#8221;. Doesn\u2019t it remind you of the system used to build the layout with the tables? The improper use of the tag \u201ctable\u201d has been one of the many reasons that brought to the arrival of style sheets.<br><strong>Grid Layout<\/strong>&nbsp;is born to address the problem of over-use of Framework, and this is the first time a CSS module is created only to manage the UI. Actually, none of the technologies present in the previous specifications were designed for the construction of web interfaces, all the solutions were designed by smart hacks and they can satisfy many different needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The property Float, for example, was born to insure that pictures can \u201cfloat\u201d inside text blocks, even if it has been used for years (and it is still used) to build layouts based on floating elements (float left or right) and related resets (clear left or right or both). Unfortunately, each browser understands the property differently. Furthermore, the use of the property&nbsp;<strong>overflow: hidden<\/strong>&nbsp;or of the smart class&nbsp;<strong>.clearfix<\/strong>&nbsp;was common to solve the bug of cropped&nbsp;backgrounds (<a href=\"https:\/\/complexspiral.com\/publications\/containing-floats\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/complexspiral.com\/publications\/containing-floats\/<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then Flexbox arrives, and it brings some news and tools that can solve many of the problems related to the UI. Unfortunately, it has been designed to manage monodimensional structures: for two-dimensional ones, it is needed to use<strong>&nbsp;CSS Grid<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CSS Grid&nbsp;<\/strong>was presented at W3C in 2011 by Phil Cupp (here is the link to the first working draft:&nbsp;<a href=\"https:\/\/www.w3.org\/TR\/2011\/WD-css3-grid-layout-20110407\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.w3.org\/TR\/2011\/WD-css3-grid-layout-20110407\/<\/a>) . The goal of Cupp, at that time head of the UI team for the development of the new Microsoft\u201cintune\u201d, was to be able to bring into the CSS specification one of the most interesting modules of Silverlight: the&nbsp;<strong>Grid Layout<\/strong>.<br>Other developers have sent to W3C some Grid proposal before, but the one presented by Philip Cupp and his team was based on something already tested and functioning on Silverlight, it needs only to be adapted.<br>His specification, that has been implemented in IE 10 through the vendor prefix -ms-, has been revised, improved and re-written thanks to other developers\u2019 contribution. You can find the video interview with&nbsp;<strong>CSS Grid<\/strong>&nbsp;creators at this link:&nbsp;<a href=\"https:\/\/channel9.msdn.com\/Blogs\/msedgedev\/Creating-CSS-Grid\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/channel9.msdn.com\/Blogs\/msedgedev\/Creating-CSS-Grid<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of the biggest advantages of using&nbsp;<strong>CSS Grid<\/strong>&nbsp;is the support for the realization of two-dimensional layouts, but also the possibility to make structural changes directly in the stylesheet, without necessarily upsetting the HTML markup.<br>Let\u2019s go immediately to see the great potential of&nbsp;<strong>CSS Grid<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">First steps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We will use the BEM methodology to name classes assigned to different elements and the Sass (SCSS) to write our CSS. We will use Firefox for the rendering since, at the moment, it is the only browser that permits to display the numeration assigned to rows, thanks to the tool \u201cInspect element\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will start with this sample code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n&lt;div class=&quot;wrapper&quot;&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;div class=&quot;box&quot;&gt;Box 1&lt;\/div&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;div class=&quot;box&quot;&gt;Box 2&lt;\/div&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;div class=&quot;box&quot;&gt;Box 3&lt;\/div&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;div class=&quot;box&quot;&gt;Box 4&lt;\/div&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;div class=&quot;box&quot;&gt;Box 5&lt;\/div&gt;\n\u00a0\u00a0\u00a0\u00a0&lt;div class=&quot;box&quot;&gt;Box 6&lt;\/div&gt;\n&lt;\/div&gt; \n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.wrapper {\n\u00a0\u00a0\u00a0\u00a0background: #ddd;\n\u00a0\u00a0\u00a0\u00a0width: 900px;\n\u00a0\u00a0\u00a0\u00a0margin: auto;\n}\n\u00a0\u00a0\n.box {\n\u00a0\u00a0\u00a0\u00a0padding: 15px;\n\u00a0\u00a0\u00a0\u00a0outline: 1px solid #000;\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">In this case, we defined a div with a&nbsp;<strong>.wrapper<\/strong>&nbsp;class with nested boxes inside it. We want to get a template with 2 lines with a fixed height of 150px and 3 columns, each of them should be 300px wide.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"352\" data-attachment-id=\"28086\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/grid-1-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-1.png?fit=1002%2C352&amp;ssl=1\" data-orig-size=\"1002,352\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"grid-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-1.png?fit=1002%2C352&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-1.png?resize=1002%2C352&#038;ssl=1\" alt=\"\" class=\"wp-image-28086\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-1.png 1002w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-1-980x344.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-1-480x169.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1002px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In a&nbsp;<strong>Bootstrap<\/strong>&nbsp;type framework, we should have inserted structural elements as&nbsp;<strong>.row<\/strong>&nbsp;and&nbsp;<strong>.col-*<\/strong>&nbsp;to define the grid. With CSS Grid we only need to assign the property&nbsp;<strong>display: grid<\/strong>&nbsp;to the element with the&nbsp;<strong>.wrapper<\/strong>&nbsp;class:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n.wrapper {\n\u00a0\u00a0\u00a0\u00a0background: #ddd;\n\u00a0\u00a0\u00a0\u00a0width: 900px;\n\u00a0\u00a0\u00a0\u00a0margin: auto;\n\u00a0\u00a0\u00a0\u00a0display: grid;\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">We will now define a 300px width for each column. We will use the property&nbsp;<strong>grid-template-columns<\/strong>&nbsp;to do that and, to have 3 columns, we should write the same value 3 times, as in the following example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.wrapper {\n\u00a0\u00a0\u00a0\u00a0display: grid;\n\u00a0\u00a0\u00a0\u00a0grid-template-columns: 300px 300px 300px;\n}\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"122\" data-attachment-id=\"28089\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/grid-2-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-2.png?fit=1002%2C122&amp;ssl=1\" data-orig-size=\"1002,122\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"grid-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-2.png?fit=1002%2C122&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-2.png?resize=1002%2C122&#038;ssl=1\" alt=\"\" class=\"wp-image-28089\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-2.png 1002w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-2-980x119.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-2-480x58.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1002px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The line has a default height set on&nbsp;<strong>auto<\/strong>&nbsp;and it will automatically adapt to the content. If we want to decide a fixed value, we will use the property&nbsp;<strong>grid-template-rows<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.wrapper {\n\u00a0\u00a0\u00a0\u00a0display: grid;\n\u00a0\u00a0\u00a0\u00a0grid-template-columns: 300px 300px 300px;\n\u00a0\u00a0\u00a0\u00a0grid-template-rows: 300px 100px;\n}\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"452\" data-attachment-id=\"28091\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/grid-3-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-3.png?fit=1002%2C452&amp;ssl=1\" data-orig-size=\"1002,452\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"grid-3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-3.png?fit=1002%2C452&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-3.png?resize=1002%2C452&#038;ssl=1\" alt=\"\" class=\"wp-image-28091\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-3.png 1002w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-3-980x442.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-3-480x217.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1002px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, we decided an height of 300px for the first line and of 100px for the second line. We should again write the same value 2 times, to obtain 2 lines with the same height.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\ngrid-template-rows: 150px 150px;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">We can use the function&nbsp;<strong>repeat<\/strong>&nbsp;to avoid insert the same value many times. Following this formula we can define columns\u2019 height and width:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>repeat<\/strong>(&nbsp;<strong>[<\/strong>number of columns or lines<strong>]<\/strong>,&nbsp;<strong>[<\/strong>height or width<strong>]<\/strong>);<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.wrapper {\n\u00a0\u00a0\u00a0\u00a0display: grid;\n\u00a0\u00a0\u00a0\u00a0grid-template-columns: repeat(3, 300px);\n\u00a0\u00a0\u00a0\u00a0grid-template-rows: repeat(2, 150px);\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">If we set a fixed height for the first 2 lines, for any others in addition the height will be automatic:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"447\" data-attachment-id=\"28095\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/grid-4-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-4.png?fit=1002%2C447&amp;ssl=1\" data-orig-size=\"1002,447\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"grid-4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-4.png?fit=1002%2C447&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-4.png?resize=1002%2C447&#038;ssl=1\" alt=\"\" class=\"wp-image-28095\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-4.png 1002w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-4-980x437.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-4-480x214.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1002px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to the below formula we can decide a width identical and repeated for first 2 columns (200px), the third column will be tighter (100px)<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\ngrid-template-columns: repeat(2, 200px) 100px;\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"341\" data-attachment-id=\"28097\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/grid-5-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-5.png?fit=1002%2C341&amp;ssl=1\" data-orig-size=\"1002,341\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"grid-5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-5.png?fit=1002%2C341&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-5.png?resize=1002%2C341&#038;ssl=1\" alt=\"\" class=\"wp-image-28097\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-5.png 1002w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-5-980x334.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-5-480x163.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1002px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If we want the last column to occupy all available space, the specification&nbsp;<strong>CSS Grid<\/strong>&nbsp;offers us a new relative unit of measurement: the&nbsp;<strong>fraction (fr)<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our formula will then change in:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\ngrid-template-columns: repeat(2, 200px) 1fr;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">where the last value (<strong>1fr<\/strong>) is relative and it adapts itself to the available space.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"339\" data-attachment-id=\"28100\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/grid-6-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-6.png?fit=1002%2C339&amp;ssl=1\" data-orig-size=\"1002,339\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"grid-6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-6.png?fit=1002%2C339&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-6.png?resize=1002%2C339&#038;ssl=1\" alt=\"\" class=\"wp-image-28100\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-6.png 1002w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-6-980x332.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-6-480x162.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1002px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We can then use the same solution to insure that the width of&nbsp;<strong>all<\/strong>&nbsp;columns will adapt itself automatically to the width of the father container:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\ngrid-template-columns: repeat(3, 1fr);\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">We can use the property&nbsp;<strong>grid-auto-rows<\/strong>, instead of&nbsp;<strong>grid-template-rows<\/strong>&nbsp;to set a fixed height for all lines, included those dynamically generated, as in the example below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\ngrid-auto-rows: 150px;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">In this case, the numerical value should be defined only one time. This is the result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"668\" data-attachment-id=\"28103\" data-permalink=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/attachment\/grid-7-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-7.png?fit=1002%2C668&amp;ssl=1\" data-orig-size=\"1002,668\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"grid-7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-7.png?fit=1002%2C668&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-7.png?resize=1002%2C668&#038;ssl=1\" alt=\"\" class=\"wp-image-28103\" srcset=\"https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-7.png 1002w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-7-980x653.png 980w, https:\/\/blexin.com\/wp-content\/uploads\/2020\/12\/grid-7-480x320.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1002px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The CSS code would be then:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.wrapper {\n\u00a0\u00a0\u00a0\u00a0display: grid;\n\u00a0\u00a0\u00a0\u00a0grid-template-columns: repeat(3, 1fr);\n\u00a0\u00a0\u00a0\u00a0grid-auto-rows: 150px;\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">We can use fractions on rows too, but we should define a fixed height for the element&nbsp;<strong>.wrapper<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.wrapper {\n\u00a0\u00a0\u00a0\u00a0height: 900px;\n\u00a0\u00a0\u00a0\u00a0display: grid;\n\u00a0\u00a0\u00a0\u00a0grid-template-columns: repeat(3, 1fr);\n\u00a0\u00a0\u00a0\u00a0grid-auto-rows: 1fr;\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">In the next article, we will see how to realize our first layout with CSS Grid, and we will analyze the great potentialities of this approach.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See you next!<\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s see how we can simplify our life as front-end developer with CSS Grid<\/p>\n","protected":false},"author":196716237,"featured_media":28081,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_crdt_document":"","inline_featured_image":false,"_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},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[688637524],"tags":[688637456],"class_list":["post-28106","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-en","tag-css-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Layout web con CSS Grid - Blexin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Layout web con CSS Grid - Blexin\" \/>\n<meta property=\"og:description\" content=\"Let\u2019s see how we can simplify our life as front-end developer with CSS Grid\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/\" \/>\n<meta property=\"og:site_name\" content=\"Blexin\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-29T23:56:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-20T16:49:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i2.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"608\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Carmine Alfano\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carmine Alfano\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/\"},\"author\":{\"name\":\"Carmine Alfano\",\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/#\\\/schema\\\/person\\\/4e2c9e1af52bea3e12948c0fdea323c6\"},\"headline\":\"Layout web con CSS Grid\",\"datePublished\":\"2019-10-29T23:56:00+00:00\",\"dateModified\":\"2021-05-20T16:49:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/\"},\"wordCount\":1151,\"image\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/blexin.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1\",\"keywords\":[\"CSS\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/\",\"url\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/\",\"name\":\"Layout web con CSS Grid - Blexin\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/blexin.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1\",\"datePublished\":\"2019-10-29T23:56:00+00:00\",\"dateModified\":\"2021-05-20T16:49:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/#\\\/schema\\\/person\\\/4e2c9e1af52bea3e12948c0fdea323c6\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/blexin.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/blexin.com\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1\",\"width\":1024,\"height\":608},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/blog-en\\\/layout-web-with-css-grid\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blexin.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Layout web con CSS Grid\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/blexin.com\\\/en\\\/\",\"name\":\"Blexin\",\"description\":\"Con noi \u00e8 semplice\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blexin.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blexin.com\\\/en\\\/#\\\/schema\\\/person\\\/4e2c9e1af52bea3e12948c0fdea323c6\",\"name\":\"Carmine Alfano\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8f226030567f12e6f1c15de5af3ecde7d4c4b654f5837f8bcfd41582d642c05f?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8f226030567f12e6f1c15de5af3ecde7d4c4b654f5837f8bcfd41582d642c05f?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8f226030567f12e6f1c15de5af3ecde7d4c4b654f5837f8bcfd41582d642c05f?s=96&d=identicon&r=g\",\"caption\":\"Carmine Alfano\"},\"url\":\"https:\\\/\\\/blexin.com\\\/en\\\/author\\\/razzullo\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Layout web con CSS Grid - Blexin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/","og_locale":"en_US","og_type":"article","og_title":"Layout web con CSS Grid - Blexin","og_description":"Let\u2019s see how we can simplify our life as front-end developer with CSS Grid","og_url":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/","og_site_name":"Blexin","article_published_time":"2019-10-29T23:56:00+00:00","article_modified_time":"2021-05-20T16:49:47+00:00","og_image":[{"width":1024,"height":608,"url":"https:\/\/i2.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1","type":"image\/png"}],"author":"Carmine Alfano","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Carmine Alfano","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/#article","isPartOf":{"@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/"},"author":{"name":"Carmine Alfano","@id":"https:\/\/blexin.com\/en\/#\/schema\/person\/4e2c9e1af52bea3e12948c0fdea323c6"},"headline":"Layout web con CSS Grid","datePublished":"2019-10-29T23:56:00+00:00","dateModified":"2021-05-20T16:49:47+00:00","mainEntityOfPage":{"@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/"},"wordCount":1151,"image":{"@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1","keywords":["CSS"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/","url":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/","name":"Layout web con CSS Grid - Blexin","isPartOf":{"@id":"https:\/\/blexin.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/#primaryimage"},"image":{"@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1","datePublished":"2019-10-29T23:56:00+00:00","dateModified":"2021-05-20T16:49:47+00:00","author":{"@id":"https:\/\/blexin.com\/en\/#\/schema\/person\/4e2c9e1af52bea3e12948c0fdea323c6"},"breadcrumb":{"@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/#primaryimage","url":"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1","contentUrl":"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1","width":1024,"height":608},{"@type":"BreadcrumbList","@id":"https:\/\/blexin.com\/en\/blog-en\/layout-web-with-css-grid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blexin.com\/en\/"},{"@type":"ListItem","position":2,"name":"Layout web con CSS Grid"}]},{"@type":"WebSite","@id":"https:\/\/blexin.com\/en\/#website","url":"https:\/\/blexin.com\/en\/","name":"Blexin","description":"Con noi \u00e8 semplice","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blexin.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blexin.com\/en\/#\/schema\/person\/4e2c9e1af52bea3e12948c0fdea323c6","name":"Carmine Alfano","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8f226030567f12e6f1c15de5af3ecde7d4c4b654f5837f8bcfd41582d642c05f?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8f226030567f12e6f1c15de5af3ecde7d4c4b654f5837f8bcfd41582d642c05f?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8f226030567f12e6f1c15de5af3ecde7d4c4b654f5837f8bcfd41582d642c05f?s=96&d=identicon&r=g","caption":"Carmine Alfano"},"url":"https:\/\/blexin.com\/en\/author\/razzullo\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/blexin.com\/wp-content\/uploads\/2020\/12\/9bf31097-d4b2-41b4-b7f4-e73e8d06e864.png?fit=1024%2C608&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pcyUBx-7jk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/posts\/28106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/users\/196716237"}],"replies":[{"embeddable":true,"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/comments?post=28106"}],"version-history":[{"count":5,"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/posts\/28106\/revisions"}],"predecessor-version":[{"id":31961,"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/posts\/28106\/revisions\/31961"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/media\/28081"}],"wp:attachment":[{"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/media?parent=28106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/categories?post=28106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blexin.com\/en\/wp-json\/wp\/v2\/tags?post=28106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}