{"id":1552,"date":"2025-03-17T10:31:18","date_gmt":"2025-03-17T14:31:18","guid":{"rendered":"https:\/\/sls.gmu.edu\/web\/?p=1552"},"modified":"2025-03-17T10:31:18","modified_gmt":"2025-03-17T14:31:18","slug":"grid-layouts-in-cascade","status":"publish","type":"post","link":"https:\/\/sls.gmu.edu\/web\/2025\/03\/17\/grid-layouts-in-cascade\/","title":{"rendered":"Grid Layouts in Cascade"},"content":{"rendered":"<p>Some HTML tips for creating grid layouts in Cascade.<\/p>\n<h2>Create a three-column grid with thumbnail and link text<\/h2>\n<pre><code>&lt;div class=\"grid3 fcm\"&gt;\r\n\t&lt;a href=\"\"&gt;\r\n           &lt;img alt=\"\" src=\"\/render\/file.act?path=\/assets\/images\/photo.jpg\" \/&gt; \r\n           Link text\r\n        &lt;\/a&gt;\r\n        &lt;a href=\"\"&gt;\r\n           &lt;img alt=\"\" src=\"\/render\/file.act?path=\/assets\/images\/photo.jpg\" \/&gt; \r\n           Link text\r\n        &lt;\/a&gt;\r\n        &lt;a href=\"\"&gt;\r\n           &lt;img alt=\"\" src=\"\/render\/file.act?path=\/assets\/images\/photo.jpg\" \/&gt; \r\n           Link text\r\n        &lt;\/a&gt;\r\n&lt;\/div&gt;<\/code><\/pre>\n<p>These classes <code>grid2<\/code>, <code>grid3<\/code>, <code>grid4<\/code>, <code>grid5<\/code>, <code>grid6<\/code> can be used to set desired columns. The <code>fcm<\/code> class, which stands for <strong>First Child Margin<\/strong>, is required to reset the first child from the main CSS. The <code>fcm<\/code> class gives the first child the same margin as the rest of the children.<\/p>\n<h2>Use Span Classes<\/h2>\n<p>The <code>grid2<\/code> class can be used for more flexibility. For example, let\u2019s create a 3-column grid with one narrow column and a wide column:<\/p>\n<pre><code>&lt;div class=\"grid3 fcm\"&gt;\r\n\t&lt;section&gt;&lt;\/section&gt;\r\n        &lt;section class=\"span2\"&gt;&lt;\/section&gt;\r\n&lt;\/div&gt;<\/code><\/pre>\n<p>These classes <code>span2<\/code>, <code>span3<\/code>, <code>span4<\/code>, <code>span5<\/code> can be used to set desired span column.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some HTML tips for creating grid layouts in Cascade. Create a three-column grid with thumbnail and link text &lt;div class=&#8221;grid3 fcm&#8221;&gt; &lt;a href=&#8221;&#8221;&gt; &lt;img alt=&#8221;&#8221; src=&#8221;\/render\/file.act?path=\/assets\/images\/photo.jpg&#8221; \/&gt; Link text &lt;\/a&gt; &lt;a href=&#8221;&#8221;&gt; &lt;img alt=&#8221;&#8221; src=&#8221;\/render\/file.act?path=\/assets\/images\/photo.jpg&#8221; \/&gt; Link text &lt;\/a&gt; &lt;a href=&#8221;&#8221;&gt; &lt;img alt=&#8221;&#8221; src=&#8221;\/render\/file.act?path=\/assets\/images\/photo.jpg&#8221; \/&gt; Link text &lt;\/a&gt; &lt;\/div&gt; These classes grid2, grid3, grid4, grid5, &hellip; <a href=\"https:\/\/sls.gmu.edu\/web\/2025\/03\/17\/grid-layouts-in-cascade\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Grid Layouts in Cascade&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[45],"tags":[51],"class_list":["post-1552","post","type-post","status-publish","format-standard","hentry","category-web-design","tag-cascade"],"_links":{"self":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/1552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/comments?post=1552"}],"version-history":[{"count":0,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/1552\/revisions"}],"wp:attachment":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/media?parent=1552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/categories?post=1552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/tags?post=1552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}