<% @side_nav = "css" %>
<% @page_title = "Tables" %>

<%= @page_title %>

Okay, they're not the sexiest things ever, but tables get the job done (for tabular data, of course).

Table Header Table Header Table Header Table Header
Content Goes Here This is longer content Donec id elit non mi porta gravida at eget metus. Content Goes Here Content Goes Here
Content Goes Here This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. Content Goes Here Content Goes Here
Content Goes Here This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. Content Goes Here Content Goes Here

Build With Predefined HTML Classes

Tables are built from a mixin, but since tables don't rely on any classes to build, you can use the table element and customize with your CSS. If you are using SCSS, the variables will help you customize the look and feel.

<%= code_example '
Table Header Table Header Table Header Table Header
Content Goes Here This is longer content Donec id elit non mi porta gravida at eget metus. Content Goes Here Content Goes Here
Content Goes Here This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. Content Goes Here Content Goes Here
Content Goes Here This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. Content Goes Here Content Goes Here
', :html %>
Default SCSS Variables
<%= code_example ' /* These control the background color for the table and even rows */ $table-bg: #fff; $table-even-row-bg: #f9f9f9; /* These control the table cell border style */ $table-border-style: solid; $table-border-size: 1px; $table-border-color: #ddd; /* These control the table head styles */ $table-head-bg: #f5f5f5; $table-head-font-size: emCalc(14px); $table-head-font-color: #222; $table-head-font-weight: bold; $table-head-padding: emCalc(8px) emCalc(10px) emCalc(10px); /* These control the row padding and font styles */ $table-row-padding: emCalc(9px) emCalc(10px); $table-row-font-size: emCalc(14px); $table-row-font-color: #222; $table-line-height: emCalc(18px); /* These are for controlling the display and margin of tables */ $table-display: table-cell; $table-margin-bottom: emCalc(20px);', :css %>

Note: emCalc(); is a function we wrote to convert px to em. It is included in _foundation-global.scss.

<%= render "_sidebar-components.html.erb" %>