{"id":6883,"date":"2021-06-04T19:19:56","date_gmt":"2021-06-04T19:19:56","guid":{"rendered":"http:\/\/sites.la.utexas.edu\/kb\/?p=6883"},"modified":"2021-06-07T16:37:40","modified_gmt":"2021-06-07T16:37:40","slug":"how-to-create-a-card-layout","status":"publish","type":"post","link":"http:\/\/sites.la.utexas.edu\/kb\/2021\/06\/04\/how-to-create-a-card-layout\/","title":{"rendered":"How to Create a Card Layout"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img alt=\"\" \/><img decoding=\"async\" src=\"https:\/\/utexas.box.com\/shared\/static\/sm161essc7l6fwsv7h7dohgrw2203mt5.gif\" alt><\/figure><\/div>\n\n\n\n<p>A Card Layout is an excellent way to organize multiple longform content pieces into smaller, bite-sized sections. For instance, if you have a list of articles, you can use a card layout to better organize and summarize them, complemented by additional visual components like images.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"631\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Ex-1024x631.png\" alt=\"\" class=\"wp-image-6884\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Ex-1024x631.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Ex-300x185.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Ex-768x474.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Ex.png 1184w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You will learn how to create these using the tools at your disposal through the Cascade editor and additional HTML coding. For the purposes of this training, you will make 3&#215;3 tables to achieve the card layout. These dimensions have been proven successful since 3 rows can fit an image row, one for a title and another for content and 3 columns compliment that successfully, but that can be reduced to or expanded upon depending on your card layout needs.<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1<\/h2>\n\n\n\n<p>Click on the Edit button of your site.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"103\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Edit-1024x103.png\" alt=\"\" class=\"wp-image-6887\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Edit-1024x103.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Edit-300x30.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Edit-768x77.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Edit-1536x155.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Edit-2048x206.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once the Cascade web editor opens, scroll down to work on the <strong>main-body-content<\/strong> and click on a button that looks like this \u201c&lt;&gt;\u201d to edit the source code.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2<\/h2>\n\n\n\n<p>Type in a code such as the one shown below:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\"><code>&lt;table summary=\"here you write the card summary\"&gt;<br>&lt;tbody&gt;<br>&lt;tr&gt;<br>&lt;td&gt;Image&lt;\/td&gt;<br>&lt;td&gt;Image&lt;\/td&gt;<br>&lt;td&gt;Image&lt;\/td&gt;<br>&lt;\/tr&gt;<br>&lt;tr&gt;<br>&lt;td class=\"card-title\"&gt;<br>&lt;h4&gt;Title&lt;\/h4&gt;&lt;\/td&gt;<br>&lt;td class=\"card-title\"&gt;<br>&lt;h4&gt;Title&lt;\/h4&gt;&lt;\/td&gt;<br>&lt;td class=\"card-title\"&gt;<br>&lt;h4&gt;Title&lt;\/h4&gt;&lt;\/td&gt;<br>&lt;\/tr&gt;<br>&lt;tr&gt;<br>&lt;td&gt;Content&lt;\/td&gt;<br>&lt;td&gt;Content&lt;\/td&gt;<br>&lt;td&gt;Content&lt;\/td&gt;<br>&lt;\/tr&gt;<br>&lt;\/tbody&gt;<br>&lt;\/table&gt;<br>&lt;style&gt;&lt;!--<br>table {width: 100%;}<br>&nbsp;&nbsp;&nbsp;&nbsp;td {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 33%;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height: 100px;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vertical-align: top;}<br>&nbsp;&nbsp;&nbsp;&nbsp;.card-title {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px solid white !important;}<br>--&gt;&lt;\/style&gt;<\/code><\/td><td>\u2190 defines and summarizes a table<br>\u2190 groups the body content<br>\u2190 defines a row in a table<br>\u2190 switch out the word \u201cImage\u201d and add your image; make sure to crop all images to the same dimensions!<br>\u2190 defines a cell and the \u201ccard-title\u201d for styling purposes<br><br>\u2190 switch out the word \u201cTitle\u201d for the actual title of the card entry\u2026 repeat<br><br>\u2190 switch out the word \u201cContent\u201d &amp; add your content; you can add text and\/or links to internal\/external resources as needed<br><br><br>\u2190 defines the table\u2019s style<br>\u2190 defines the cells&#8217;s style<br>\u2190 defines column width<br>\u2190 defines row height<br>\u2190 aligns content to top rows<br>\u2190 \u201ccard-title\u201d label styling<br>\u2190 converts that border to white to create an invisible-like effect<br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The previous code should look something like the following when previewed\/published\u2026<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"374\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Table-1024x374.png\" alt=\"\" class=\"wp-image-6890\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Table-1024x374.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Table-300x110.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Table-768x281.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Table-1536x561.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/06\/CardLayout_Table-2048x748.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Note: if you need to increase or decrease the amount of columns you need, you must go to the source code and either write in or delete the amount of &lt;td&gt;&lt;\/td&gt; code you have. Also, make sure that the width of the cells in the style section of the code is set to the proper percentage of the total table width. Otherwise, you will have formatting issues.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3<\/h2>\n\n\n\n<p>Add your content!&nbsp;Using the Cascade WYSIWYG editor add:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Images \u2013 Add through the insert\/edit image button. Also, make sure the images you add have the same dimensions as each other.<img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"120\" src=\"https:\/\/lh6.googleusercontent.com\/MncZgCs4nbkyYfwmUq669M4Dy-20QPBVc-gablJaBW4EwVm__poklDKvxgjSdP8OqCjOKw5Q7SHTwNusp-kxTKj5WT18htpl5sd9EyGWgzj-Ny2c8gd3OWa_S7LiDjUDhPDP7hiF\"><\/li><li>Titles \u2013 Edit through the format \u2192 headings buttons. A size 4 heading is recommended.<img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"367\" src=\"https:\/\/lh3.googleusercontent.com\/xKrQC8L4lTCJUGcecCxb0j8i3KPkg_L3b96-K0v0W90Yq5ec3g3wEXdD5GBenz5EwvwehdbGcyx4QByJ1lIWupIk2w3-tunF8rufCHRUX_nMN4yigq6A_HRGG2Yg7NjHM3gLIwrf\"><\/li><li>Content \u2013 Add regular content by writing on the cell with the standard paragraph feature. Incorporate links if needed through the insert\/edit link button.<img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"475\" src=\"https:\/\/lh4.googleusercontent.com\/yDsxDMYXmZXdirL41Ey_gwNu8UeKnO7hSKMWU1i2c3VSRcw_bpSeXCPa14SLBQKrrMHQcdWYVbV0XRfhgt-AjAVkUD5ccWFc2XPF1F1ie-r9khy0mswr60NrJpdKiy2PgT59jtkd\"><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4<\/h2>\n\n\n\n<p>Repeat as needed. If you need more cards just copy and paste the same code and re-edit the content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2021\/05\/basic-training-last-steps-1024x341.png\" alt=\"\" class=\"wp-image-6649\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/05\/basic-training-last-steps-1024x341.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/05\/basic-training-last-steps-300x100.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/05\/basic-training-last-steps-768x256.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/05\/basic-training-last-steps-1536x512.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2021\/05\/basic-training-last-steps-2048x683.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A Card Layout is an excellent way to organize multiple longform content pieces into smaller, bite-sized sections. For instance, if you have a list of articles, you can use a card layout to better organize and summarize them, complemented by &hellip; <a href=\"http:\/\/sites.la.utexas.edu\/kb\/2021\/06\/04\/how-to-create-a-card-layout\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":759,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[227824],"tags":[],"class_list":["post-6883","post","type-post","status-publish","format-standard","hentry","category-cascade"],"_links":{"self":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/6883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/users\/759"}],"replies":[{"embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/comments?post=6883"}],"version-history":[{"count":26,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/6883\/revisions"}],"predecessor-version":[{"id":6962,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/6883\/revisions\/6962"}],"wp:attachment":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/media?parent=6883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/categories?post=6883"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/tags?post=6883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}