The BioShip Grid System is built primarily upon the Skeleton Boilerplate grid system. It also incorporates some aspects of other grid systems such as 960GS and Blueprint.
Main Layout Grid
The main BioShip theme display template is based upon columns with em based unit widths. This means the grid scales flexibly and well according to browser zoom and base font size. The main #wrap container contains the header, footer, sidebars and content area. All of the main grid display is worked out automatically based on your theme settings. It is worth remembering that sidebar, subsidebar and content column widths of any page should add to the total grid columns set in your theme settings (the default is sixteen.)
Within the page #content area, there is an optional content grid available that uses % based widths.
The number of grid columns can be set in theme settings for the container class (default twentyfour.)
Alternatively you can set an explicit number of grid columns using a specific container class of:
container_12, container_16, container_20, or container_24
Device Width Breakpoints
Both the Main Layout Grid and Content Grid reponsively resize according to device screen width. The default device breakpoints are 320px, 480px, 640px, 768px, 960px, 1140px and 1200px. You can change the number and value of these breakpoints via the theme options screen. (Note that any breakpoint larger than the maximum layout width set will be ignored.)
Content Grid SyntaxRather than using shortcodes, content columns can be generated using simple <div> element classes.
<div class="container"><div class="eight columns">COLUMN A</div>
<div class="eight columns">COLUMN B</div></div>
Using outside margins for columns is problematic because it is unknown how many columns may be in a row.
To resolve this problem, inner divs are used in each column to give inner padding instead of outside margins.
Simply add a second div inside the column div with a class of inner to achieve the spacing effect.
The grid stylesheet automatically applies the padding to the inner div to give the column spacing. eg.
<div class="container"><div class="eight columns"><div class="inner">COLUMN A</div></div>
<div class="eight columns"><div class="inner">COLUMN B</div></div></div>
You can see the combination of resizable responsive grid with inner padding in the following example grid.(some colours and borders styles are added here for clearer emphasis only.)
Content Grid Class Reference
Extra classes are available for column shifts and offsets, to help you position the grid columns. Outer margins of different column sizes are applied to achieve these column shifts and offsets. The below reference table shows you which of the numbered class names have what effect.
|960 Grid System||Blueprint||Foundation|
|Grid Columns||12/16/20/24||16||12 or 16||24||12|
|Offset Left||.offsetX or|
Content Grid Compatibility Classes
If you prefer, you can use the grid class syntax for 960GS or Blueprint classes by enabling either of those options in theme settings so the rules are added to the grid stylesheet also. For Foundation grid, simply enable the Foundation resources separately in theme settings tab for Foundation (Skeleton layer), and use that grid syntax as you normally would.
|← Previous: Sidebar Layout Guide||Back to Documentation Index|