{"id":2546,"date":"2015-08-06T12:21:17","date_gmt":"2015-08-06T12:21:17","guid":{"rendered":"http:\/\/pastacinquepalmi.com\/style-tables\/"},"modified":"2015-08-06T12:21:17","modified_gmt":"2015-08-06T12:21:17","slug":"style-tables","status":"publish","type":"page","link":"https:\/\/pastacinquepalmi.com\/ro\/style-tables\/","title":{"rendered":"Style &#8211; Tables"},"content":{"rendered":"<h2>Default styles<\/h2>\n<p>For basic styling\u2014light padding and only horizontal dividers\u2014add the base class <code>.table<\/code> to any <code>&lt;table&gt;<\/code>.<\/p>\n<div class=\"bs-docs-example\">\n<table class=\"table\">\n<thead>\n<tr>\n<th>#<\/th>\n<th>First Name<\/th>\n<th>Last Name<\/th>\n<th>Username<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Mark<\/td>\n<td>Otto<\/td>\n<td>@mdo<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Jacob<\/td>\n<td>Thornton<\/td>\n<td>@fat<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Larry<\/td>\n<td>the Bird<\/td>\n<td>@twitter<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"prettyprint linenums\">\r\n&lt;table&gt;\r\n  &hellip;\r\n&lt;\/table&gt;\r\n<\/pre>\n<hr class=\"bs-docs-separator\" \/>\n<h2>Optional classes<\/h2>\n<p>Add any of the following classes to the <code>.table<\/code> base class.<\/p>\n<h3><code>.table-striped<\/code><\/h3>\n<p>Adds zebra-striping to any table row within the <code>&lt;tbody&gt;<\/code> via the <code>:nth-child<\/code> CSS selector (not available in IE7-IE8).<\/p>\n<div class=\"bs-docs-example\">\n<table class=\"table table-striped\">\n<thead>\n<tr>\n<th>#<\/th>\n<th>First Name<\/th>\n<th>Last Name<\/th>\n<th>Username<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Mark<\/td>\n<td>Otto<\/td>\n<td>@mdo<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Jacob<\/td>\n<td>Thornton<\/td>\n<td>@fat<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Larry<\/td>\n<td>the Bird<\/td>\n<td>@twitter<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"prettyprint linenums\">\r\n&lt;table&gt;\r\n  &hellip;\r\n&lt;\/table&gt;\r\n<\/pre>\n<h3><code>.table-bordered<\/code><\/h3>\n<p>Add borders and rounded corners to the table.<\/p>\n<div class=\"bs-docs-example\">\n<table class=\"table table-bordered\">\n<thead>\n<tr>\n<th>#<\/th>\n<th>First Name<\/th>\n<th>Last Name<\/th>\n<th>Username<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td rowspan=\"2\">1<\/td>\n<td>Mark<\/td>\n<td>Otto<\/td>\n<td>@mdo<\/td>\n<\/tr>\n<tr>\n<td>Mark<\/td>\n<td>Otto<\/td>\n<td>@TwBootstrap<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Jacob<\/td>\n<td>Thornton<\/td>\n<td>@fat<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td colspan=\"2\">Larry the Bird<\/td>\n<td>@twitter<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"prettyprint linenums\">\r\n&lt;table&gt;\r\n  &hellip;\r\n&lt;\/table&gt;\r\n<\/pre>\n<h3><code>.table-hover<\/code><\/h3>\n<p>Enable a hover state on table rows within a <code>&lt;tbody&gt;<\/code>.<\/p>\n<div class=\"bs-docs-example\">\n<table class=\"table table-hover\">\n<thead>\n<tr>\n<th>#<\/th>\n<th>First Name<\/th>\n<th>Last Name<\/th>\n<th>Username<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Mark<\/td>\n<td>Otto<\/td>\n<td>@mdo<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Jacob<\/td>\n<td>Thornton<\/td>\n<td>@fat<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td colspan=\"2\">Larry the Bird<\/td>\n<td>@twitter<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"prettyprint linenums\">\r\n&lt;table&gt;\r\n  &hellip;\r\n&lt;\/table&gt;\r\n<\/pre>\n<h3><code>.table-condensed<\/code><\/h3>\n<p>Makes tables more compact by cutting cell padding in half.<\/p>\n<div class=\"bs-docs-example\">\n<table class=\"table table-condensed\">\n<thead>\n<tr>\n<th>#<\/th>\n<th>First Name<\/th>\n<th>Last Name<\/th>\n<th>Username<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Mark<\/td>\n<td>Otto<\/td>\n<td>@mdo<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Jacob<\/td>\n<td>Thornton<\/td>\n<td>@fat<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td colspan=\"2\">Larry the Bird<\/td>\n<td>@twitter<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"prettyprint linenums\">\r\n&lt;table&gt;\r\n  &hellip;\r\n&lt;\/table&gt;\r\n<\/pre>\n<hr class=\"bs-docs-separator\" \/>\n<h2>Optional row classes<\/h2>\n<p>Use contextual classes to color table rows.<\/p>\n<table class=\"table table-bordered table-striped\">\n<colgroup>\n<col class=\"span1\" \/>\n<col class=\"span7\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>Class<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>.success<\/code><\/td>\n<td>Indicates a successful or positive action.<\/td>\n<\/tr>\n<tr>\n<td><code>.error<\/code><\/td>\n<td>Indicates a dangerous or potentially negative action.<\/td>\n<\/tr>\n<tr>\n<td><code>.warning<\/code><\/td>\n<td>Indicates a warning that might need attention.<\/td>\n<\/tr>\n<tr>\n<td><code>.info<\/code><\/td>\n<td>Used as an alternative to the default styles.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"bs-docs-example\">\n<table class=\"table\">\n<thead>\n<tr>\n<th>#<\/th>\n<th>Product<\/th>\n<th>Payment Taken<\/th>\n<th>Status<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"success\">\n<td>1<\/td>\n<td>TB &#8211; Monthly<\/td>\n<td>01\/04\/2012<\/td>\n<td>Approved<\/td>\n<\/tr>\n<tr class=\"error\">\n<td>2<\/td>\n<td>TB &#8211; Monthly<\/td>\n<td>02\/04\/2012<\/td>\n<td>Declined<\/td>\n<\/tr>\n<tr class=\"warning\">\n<td>3<\/td>\n<td>TB &#8211; Monthly<\/td>\n<td>03\/04\/2012<\/td>\n<td>Pending<\/td>\n<\/tr>\n<tr class=\"info\">\n<td>4<\/td>\n<td>TB &#8211; Monthly<\/td>\n<td>04\/04\/2012<\/td>\n<td>Call in to confirm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"prettyprint linenums\">...\r\n  &lt;tr class=&quot;success&quot;&gt;\r\n    &lt;td&gt;1&lt;\/td&gt;\r\n    &lt;td&gt;TB - Monthly&lt;\/td&gt;\r\n    &lt;td&gt;01\/04\/2012&lt;\/td&gt;\r\n    &lt;td&gt;Approved&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n...<\/pre>\n<hr class=\"bs-docs-separator\" \/>\n<h2>Supported table markup<\/h2>\n<p>List of supported table HTML elements and how they should be used.<\/p>\n<table class=\"table table-bordered table-striped\">\n<colgroup>\n<col class=\"span1\" \/>\n<col class=\"span7\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>Tag<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>&lt;table&gt;<\/code><\/td>\n<td>Wrapping element for displaying data in a tabular format<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;thead&gt;<\/code><\/td>\n<td>Container element for table header rows (<code>&lt;tr&gt;<\/code>) to label table columns<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;tbody&gt;<\/code><\/td>\n<td>Container element for table rows (<code>&lt;tr&gt;<\/code>) in the body of the table<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;tr&gt;<\/code><\/td>\n<td>Container element for a set of table cells (<code>&lt;td&gt;<\/code> or <code>&lt;th&gt;<\/code>) that appears on a single row<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;td&gt;<\/code><\/td>\n<td>Default table cell<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;th&gt;<\/code><\/td>\n<td>Special table cell for column (or row, depending on scope and placement) labelsMust be used within a <code>&lt;thead&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;caption&gt;<\/code><\/td>\n<td>Description or summary of what the table holds, especially useful for screen readers<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"prettyprint linenums\">&lt;table&gt;\r\n  &lt;caption&gt;...&lt;\/caption&gt;\r\n  &lt;thead&gt;\r\n    &lt;tr&gt;\r\n      &lt;th&gt;...&lt;\/th&gt;\r\n      &lt;th&gt;...&lt;\/th&gt;\r\n    &lt;\/tr&gt;\r\n  &lt;\/thead&gt;\r\n  &lt;tbody&gt;\r\n    &lt;tr&gt;\r\n      &lt;td&gt;...&lt;\/td&gt;\r\n      &lt;td&gt;...&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n  &lt;\/tbody&gt;\r\n&lt;\/table&gt;<\/pre>","protected":false},"excerpt":{"rendered":"<p>Default styles For basic styling&mdash;light padding and only horizontal dividers&mdash;add the base class .table to any &lt;table&gt;. # First Name Last Name Username 1 Mark Otto @mdo 2 Jacob Thornton @fat 3 Larry the Bird @twitter Optional classes Add any of the following classes to the .table base class. .table-striped Adds zebra-striping to any table<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2546","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pastacinquepalmi.com\/ro\/wp-json\/wp\/v2\/pages\/2546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pastacinquepalmi.com\/ro\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pastacinquepalmi.com\/ro\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pastacinquepalmi.com\/ro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pastacinquepalmi.com\/ro\/wp-json\/wp\/v2\/comments?post=2546"}],"version-history":[{"count":0,"href":"https:\/\/pastacinquepalmi.com\/ro\/wp-json\/wp\/v2\/pages\/2546\/revisions"}],"wp:attachment":[{"href":"https:\/\/pastacinquepalmi.com\/ro\/wp-json\/wp\/v2\/media?parent=2546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}