{"id":353,"date":"2015-08-06T12:21:17","date_gmt":"2015-08-06T12:21:17","guid":{"rendered":"http:\/\/aliratelecom.com\/style-tables\/"},"modified":"2015-08-06T12:21:17","modified_gmt":"2015-08-06T12:21:17","slug":"style-tables","status":"publish","type":"page","link":"http:\/\/aliratelecom.com\/?page_id=353","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\">[table]\r\n&lt;table&gt;\r\n  \u2026\r\n&lt;\/table&gt;\r\n[\/table]<\/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\">[table type=\"table-striped\"]\r\n&lt;table&gt;\r\n  \u2026\r\n&lt;\/table&gt;\r\n[\/table]<\/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\">[table type=\"table-bordered\"]\r\n&lt;table&gt;\r\n  \u2026\r\n&lt;\/table&gt;\r\n[\/table]<\/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\">[table type=\"table-hover\"]\r\n&lt;table&gt;\r\n  \u2026\r\n&lt;\/table&gt;\r\n[\/table]<\/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\">[table type=\"table-condensed\"]\r\n&lt;table&gt;\r\n  \u2026\r\n&lt;\/table&gt;\r\n[\/table]<\/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=\"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...<\/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>\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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-353","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Style - Tables - Alira Telecom<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aliratelecom.com\/?page_id=353\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Style - Tables - Alira Telecom\" \/>\n<meta property=\"og:description\" content=\"Default styles For basic styling\u2014light padding and only horizontal dividers\u2014add the base class .table to any &lt;table&gt;. # First Name [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aliratelecom.com\/?page_id=353\" \/>\n<meta property=\"og:site_name\" content=\"Alira Telecom\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/aliratelecom.com\/?page_id=353\",\"url\":\"https:\/\/aliratelecom.com\/?page_id=353\",\"name\":\"Style - Tables - Alira Telecom\",\"isPartOf\":{\"@id\":\"http:\/\/aliratelecom.com\/#website\"},\"datePublished\":\"2015-08-06T12:21:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/aliratelecom.com\/?page_id=353#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/aliratelecom.com\/?page_id=353\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/aliratelecom.com\/?page_id=353#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/aliratelecom.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Style &#8211; Tables\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/aliratelecom.com\/#website\",\"url\":\"http:\/\/aliratelecom.com\/\",\"name\":\"Alira Telecom\",\"description\":\"flexible telephony! free to roam\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/aliratelecom.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Style - Tables - Alira Telecom","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/aliratelecom.com\/?page_id=353","og_locale":"en_GB","og_type":"article","og_title":"Style - Tables - Alira Telecom","og_description":"Default styles For basic styling\u2014light padding and only horizontal dividers\u2014add the base class .table to any &lt;table&gt;. # First Name [&hellip;]","og_url":"https:\/\/aliratelecom.com\/?page_id=353","og_site_name":"Alira Telecom","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/aliratelecom.com\/?page_id=353","url":"https:\/\/aliratelecom.com\/?page_id=353","name":"Style - Tables - Alira Telecom","isPartOf":{"@id":"http:\/\/aliratelecom.com\/#website"},"datePublished":"2015-08-06T12:21:17+00:00","breadcrumb":{"@id":"https:\/\/aliratelecom.com\/?page_id=353#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aliratelecom.com\/?page_id=353"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/aliratelecom.com\/?page_id=353#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/aliratelecom.com\/"},{"@type":"ListItem","position":2,"name":"Style &#8211; Tables"}]},{"@type":"WebSite","@id":"http:\/\/aliratelecom.com\/#website","url":"http:\/\/aliratelecom.com\/","name":"Alira Telecom","description":"flexible telephony! free to roam","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/aliratelecom.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"http:\/\/aliratelecom.com\/index.php?rest_route=\/wp\/v2\/pages\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aliratelecom.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/aliratelecom.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/aliratelecom.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aliratelecom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":0,"href":"http:\/\/aliratelecom.com\/index.php?rest_route=\/wp\/v2\/pages\/353\/revisions"}],"wp:attachment":[{"href":"http:\/\/aliratelecom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}