{"id":5006,"date":"2017-01-31T18:18:06","date_gmt":"2017-01-31T18:18:06","guid":{"rendered":"http:\/\/tommustester.wpengine.com\/?page_id=164"},"modified":"2017-01-31T18:18:06","modified_gmt":"2017-01-31T18:18:06","slug":"tables","status":"publish","type":"page","link":"https:\/\/promosimple.com\/blog\/elements\/tables","title":{"rendered":"Elements &#8211; Tables"},"content":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text]<\/p>\n<h1>Tables<\/h1>\n<p class=\"lead\">These modular elements can be readily used and customized across pages and in different blocks.<\/p>\n<hr class=\"short\" \/>\n<p>Explore all of Stack&#8217;s modular elements<br \/>\nat the\u00a0<a href=\"\/elements\/\">Element Index Page \u2192<\/a>[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Standard Tables<\/h4>\n<p>This code will display a standard, variable-width table using basic HTML table markup.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_column_text]<\/p>\n<table class=\"border--round\">\n<thead>\n<tr>\n<th>Value 1<\/th>\n<th>Value 2<\/th>\n<th>Value 3<\/th>\n<th>Value 4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Alternating Columns<\/h4>\n<p>Add the class <strong>.table&#8211;alternate-column<\/strong> to the table element to offset every second column with a slightly darker background colour. This is useful when creating wide tables with many values.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_column_text]<\/p>\n<table class=\"border--round table--alternate-column\">\n<thead>\n<tr>\n<th>Value 1<\/th>\n<th>Value 2<\/th>\n<th>Value 3<\/th>\n<th>Value 4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Alternating Rows<\/h4>\n<p>Add the class <strong>.table&#8211;alternate-row<\/strong> to the table element to offset every second row with a slightly darker background colour. This is useful when creating wide tables with many values.<\/p>\n<p>[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_column_text]<\/p>\n<table class=\"border--round table--alternate-row\">\n<thead>\n<tr>\n<th>Value 1<\/th>\n<th>Value 2<\/th>\n<th>Value 3<\/th>\n<th>Value 4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][\/vc_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text] Tables These modular elements can be readily used and customized across pages and in different blocks. Explore all of Stack&#8217;s modular elements at the\u00a0Element Index Page \u2192[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;1\/2&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text] Standard Tables This code will display a standard, variable-width table using basic HTML table markup.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_column_text] Value 1 Value [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":33,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/pages\/5006"}],"collection":[{"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/comments?post=5006"}],"version-history":[{"count":0,"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/pages\/5006\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/pages\/33"}],"wp:attachment":[{"href":"https:\/\/promosimple.com\/blog\/wp-json\/wp\/v2\/media?parent=5006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}