Tables

Tables are useful when a collection of data requires vertical alignment through columns for quick scanning and discovery of information. COUNTRY Financial® uses two table styles, a default and a 'simple' table for all tabular data needs.

Creating a table is straight-forward. Simply declare a <table> element to create the most basic table.

Responsive

All tables are made responsive by adding a small JavaScript file to handle re-arranging the tabular data. Once the page is loaded, JavaScript will add a data-th data attribute to each <td>, which then gets displayed as the header for each row in the mobile view.

For more information on how the JavaScript handles responsive tables, please refer to the JavaScript page in the Developer Notes section.

Default

The default is a standard table with minimal styling. Zebra striping is used to help the user quickly identify content within the rows and columns of data.

The default table should be used for displaying legal information and privacy policy information that needs to be displayed in a tabular format. Some additional examples are, but not limited to: claims data information, insurance policy data, investment and financial data, contest timelines, and contest prizing charts.

Entry/Event PeriodStart DateEnds DateDrawing Date
Event 11/10/20162/14/20162/20/2016
Event 26/19/20167/20/20167/26/2016
Event 38/19/20169/2/20169/10/2016
Event 49/15/20169/30/201610/5/2016
Event 510/20/201611/5/201611/15/2016

Simple

The simple table has more visual styling than the default table. There are no zebra stripes with this table style, but there are more brand colors used. These tables should be used for marketing and client facing projects, as they are more easy on the eyes.

To create a simple style table, add the .table-simple class on the <table> element.

<table class="table-simple">...

This table example has a header for each column:

Table Header 1em BoldTable HeaderTable HeaderTable Header
Table Body 0.875em (small)Table BodyTable BodyTable Body
Table BodyTable BodyTable BodyTable Body
Table BodyTable BodyTable BodyTable Body

This table uses the same .simple class, but does not have a heading for each column:

Column Header 1em BoldColumn HeaderColumn Header
Row Header 0.875em BoldTable BodyTable BodyTable Body
Row HeaderTable BodyTable BodyTable Body
Row HeaderTable BodyTable BodyTable Body

The following table shows an example of a .simple table, but with no <thead>:

Row Header 0.875em BoldTable BodyTable BodyTable Body
Row HeaderTable BodyTable BodyTable Body
Row HeaderTable BodyTable BodyTable Body

Dot Leader

The dot leader table is used for displaying transactional datasets. A simple example is simulating a bill concept for the web. Each row has dotted lines between two text elements to show a corrleation betwen the two.

To create a simple style table, add the .dot-leader class on the <table> element.

PA1234456789 (Auto)$161.00
Madison Country Farm Bureau/Illinois Farm Bureau® Membership Dues$20.00
Payment Plan Fee$3.00