# basscss-table-object

> CSS layout module for vertically centering elements.

Latest version **0.0.8** (published 2015-08-30) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install basscss-table-object
pnpm add basscss-table-object
yarn add basscss-table-object
bun add basscss-table-object
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2015-08-30 |
| First published | 2014-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brent Jackson |
| Maintainers | jxnblk |
| Keywords | CSS, Basscss, OOCSS |

## Links

- npm: https://www.npmjs.com/package/basscss-table-object
- Repository: https://github.com/jxnblk/basscss-table-object
- Issues: https://github.com/jxnblk/basscss-table-object/issues
- npm.io page: https://npm.io/package/basscss-table-object

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2015-08-30
- 0.0.7 — 2014-12-22
- 0.0.6 — 2014-12-09
- 0.0.5 — 2014-09-29
- 0.0.4 — 2014-09-29
- 0.0.3 — 2014-09-21
- 0.0.2 — 2014-09-14
- 0.0.1 — 2014-09-10

## README

# Basscss Table Object

**This module has been deprecated in favor of basscss-utility-layout and basscss-align**

<p class="hide">CSS layout module to vertically center elements for Basscss.</p>

<a href="http://basscss.com" class="hide">basscss.com</a>

Use the table object to vertically center content.
These styles can be combined with grid width and white-space utilities
for a wide range of layout options.
Apply padding to `.table-cell` elements to contol spacing.

```html
<div class="table outline-blue">
  <div class="table-cell">
    <h1 class="m0">.table-cell</h1>
    <p class="m0">For vertically centered content</p>
  </div>
  <div class="table-cell">.table-cell</div>
</div>
```

## Flag Object
The flag object can be emulated by adding `.full-width` to one of the cells.
To add padding to the body, nest another div within the full-width cell.

```html
<div class="table outline-blue">
  <div class="table-cell p2">Image</div>
  <div class="table-cell full-width">
    <h1 class="m0">Flag Body</h1>
    <p class="m0">The full-width utility makes the table object behave like the flag object.</p>
  </div>
</div>
```

## Equal width cells
Use the `.table-fixed` extension to create equal-width cells.

```html
<div class="table table-fixed outline-blue">
  <div class="table-cell">
    <h1 class="m0">.table-cell</h1>
    <p class="m0">For vertically centered content</p>
  </div>
  <div class="table-cell">.table-cell</div>
  <div class="table-cell">.table-cell</div>
</div>
```

## Responsive Table Object
Use breakpoint prefixes to keep table objects stacked at smaller screen sizes.
This is useful for things like navigation.

```html
<div class="sm-table mb1 outline-blue">
  <div class="sm-table-cell">
    <h1 class="m0">.sm-table-cell</h1>
    <p class="m0">Only kicks in above the small breakpoint</p>
  </div>
  <div class="sm-table-cell">.sm-table-cell</div>
</div>
<div class="lg-table outline-blue">
  <div class="lg-table-cell">
    <h1 class="m0">.lg-table-cell</h1>
    <p class="m0">Only kicks in above the large breakpoint</p>
  </div>
  <div class="lg-table-cell">.lg-table-cell</div>
</div>
```

## Table Grid
The table object can be combined with grid width utilities to create vertically centered columns.

```html
<div class="table outline-blue">
  <div class="table-cell col-7">
    <h1 class="m0">.table-cell.col-7</h1>
    <p class="m0">For vertically centered content</p>
  </div>
  <div class="table-cell col-5">.table-cell.col-5</div>
</div>
```

MIT License

---
_Source: https://npm.io/package/basscss-table-object · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
