# basscss-utility-layout

> Layout utilities module for Basscss

Latest version **2.0.4** (published 2015-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install basscss-utility-layout
pnpm add basscss-utility-layout
yarn add basscss-utility-layout
bun add basscss-utility-layout
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2015-12-17 |
| First published | 2014-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5898 |
| Author | Brent Jackson |
| Maintainers | jxnblk |
| Keywords | css, oocss, basscss |

## Links

- npm: https://www.npmjs.com/package/basscss-utility-layout
- Repository: https://github.com/basscss/basscss
- Issues: https://github.com/basscss/basscss/issues
- npm.io page: https://npm.io/package/basscss-utility-layout

## 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

- 2.0.4 (latest) — 2015-12-17
- 2.0.0-beta.1 (beta) — 2015-05-24
- 2.0.3 — 2015-06-29
- 2.0.2 — 2015-06-29
- 2.0.1 — 2015-06-29
- 2.0.0 — 2015-06-26
- 2.0.0-beta.0 — 2015-05-24
- 1.1.0 — 2015-05-07
- 1.0.0 — 2015-04-11
- 0.0.4 — 2015-04-10
- 0.0.3 — 2015-04-09
- 0.0.2 — 2014-12-22
- 0.0.1 — 2014-12-11

## README

Change the default document flow with these display, float, and other utilities.

## Display

To adjust the display of an element, use the `.block`, `.inline`, `.inline-block`, `.table`, and `.table-cell` utilities.

```html
<div class="inline">inline</div>
<div class="inline-block">inline-block</div>
<a href="#" class="block">block</a>
<div class="table">
  <div class="table-cell">table-cell</div>
  <div class="table-cell">table-cell</div>
</div>
```

## Overflow

To adjust element overflow, use `.overflow-hidden`, `.overflow-scroll`, and `.overflow-auto`. 
`.overflow-hidden` can also be used to create a new block formatting context or clear floats.

## Floats

Use `.clearfix`, `.left`, and `.right` to clear and set floats.

```html
<div class="clearfix border border-blue">
  <div class="left border border-blue">.left</div>
  <div class="right border border-blue">.right</div>
</div>
```

## Max Width

Use `.fit` to set max-width 100%.

## Box-Sizing Border-Box

Use `.border-box` to set box-sizing border-box per element.

```html
<div class="col-6 p2 border-box border">.border-box</div>
```

## Media Object
Create a media object using basic utilities.

```html
<div class="clearfix mb2 border border-blue">
  <div class="left p2 mr1 border border-blue">Image</div>
  <div class="overflow-hidden">
    <p><b>Body</b> Bacon ipsum dolor sit amet chuck prosciutto landjaeger ham hock filet mignon shoulder hamburger pig venison.</p>
  </div>
</div>
```

## Double-Sided Media Object
For a container with a flexible center, use a double-sided media object.

```html
<div class="clearfix mb2 border border-blue">
  <div class="left p2 mr1 border border-blue">Image</div>
  <div class="right p2 ml1 border border-blue">Image</div>
  <div class="overflow-hidden">
    <p><b>Body</b> Bacon ipsum dolor sit amet chuck prosciutto landjaeger ham hock filet mignon shoulder hamburger pig venison.</p>
  </div>
</div>
```

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