{"id":11,"date":"2013-10-13T01:44:56","date_gmt":"2013-10-13T01:44:56","guid":{"rendered":"http:\/\/dinario.com\/index.php\/2013\/10\/13\/tables\/"},"modified":"2013-10-13T01:44:56","modified_gmt":"2013-10-13T01:44:56","slug":"tables","status":"publish","type":"post","link":"http:\/\/dinario.com\/index.php\/2013\/10\/13\/tables\/","title":{"rendered":"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\">&lt;table class=\"table\"&gt;\r\n  \u2026\r\n&lt;\/table&gt;\r\n<\/pre>\n<hr \/>\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-8).<\/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\" style=\"margin-bottom: 18px;\">&lt;table class=\"table table-striped\"&gt;\r\n  \u2026\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\">&lt;table class=\"table table-bordered\"&gt;\r\n  \u2026\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\" style=\"margin-bottom: 18px;\">&lt;table class=\"table table-hover\"&gt;\r\n  \u2026\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\" style=\"margin-bottom: 18px;\">&lt;table class=\"table table-condensed\"&gt;\r\n  \u2026\r\n&lt;\/table&gt;\r\n<\/pre>\n<hr \/>\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=\"success\"&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...\r\n<\/pre>\n<hr \/>\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) labels<\/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;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Default styles For basic styling\u2014light padding and only horizontal dividers\u2014add 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 &lt;table class=&#8221;table&#8221;&gt; \u2026 &lt;\/table&gt; Optional classes Add any of the following classes to the .table base class. .table-striped Adds [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dinario.com\/index.php\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}