# basscss-background-images

> Background image utilities module for Basscss

Latest version **0.1.1** (published 2016-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install basscss-background-images
pnpm add basscss-background-images
yarn add basscss-background-images
bun add basscss-background-images
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-03-01 |
| First published | 2014-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 157 |
| Author | Brent Jackson |
| Maintainers | jxnblk |
| Keywords | css, oocss, fcss, functional-css, atomic, basscss |

## Links

- npm: https://www.npmjs.com/package/basscss-background-images
- Repository: https://github.com/basscss/addons
- Issues: https://github.com/basscss/addons/issues
- npm.io page: https://npm.io/package/basscss-background-images

## 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.1.1 (latest) — 2016-03-01
- 0.1.0 — 2016-02-13
- 0.0.10 — 2016-02-06
- 0.0.9 — 2015-04-11
- 0.0.8 — 2015-04-10
- 0.0.7 — 2015-04-09
- 0.0.6 — 2015-04-05
- 0.0.5 — 2015-02-24
- 0.0.4 — 2014-12-28
- 0.0.3 — 2014-12-28
- 0.0.2 — 2014-12-28
- 0.0.1 — 2014-12-13

## README

This module controls background size and position for background images.

## Background Size

Use the `.bg-cover` or `.bg-contain` utilities to control background size.

```html
<div class="p4 bg-cover white bg-gray" style="background-image: url(https://d262ilb51hltx0.cloudfront.net/max/2000/1*DZwdGMaeu-rvTroJYui6Uw.jpeg)">
  <h1>.bg-cover</h1>
</div>
```

## Background Position

Use background position utilities to control position.

### .bg-center

```html
<div class="p4 bg-cover bg-center white bg-gray" style="background-image: url(https://d262ilb51hltx0.cloudfront.net/max/2000/1*DZwdGMaeu-rvTroJYui6Uw.jpeg)">
  <h1>.bg-center</h1>
</div>
```

### .bg-top

```html
<div class="p4 bg-cover bg-top white bg-gray" style="background-image: url(https://d262ilb51hltx0.cloudfront.net/max/2000/1*DZwdGMaeu-rvTroJYui6Uw.jpeg)">
  <h1>.bg-top</h1>
</div>
```

### .bg-right

```html
<div class="p4 bg-cover bg-right white bg-gray" style="background-image: url(https://d262ilb51hltx0.cloudfront.net/max/2000/1*DZwdGMaeu-rvTroJYui6Uw.jpeg)">
  <h1>.bg-right</h1>
</div>
```

### .bg-bottom

```html
<div class="p4 bg-cover bg-bottom white bg-gray" style="background-image: url(https://d262ilb51hltx0.cloudfront.net/max/2000/1*DZwdGMaeu-rvTroJYui6Uw.jpeg)">
  <h1>.bg-bottom</h1>
</div>
```

### .bg-left

```html
<div class="p4 bg-cover bg-left white bg-gray" style="background-image: url(https://d262ilb51hltx0.cloudfront.net/max/2000/1*DZwdGMaeu-rvTroJYui6Uw.jpeg)">
  <h1>.bg-left</h1>
</div>
```

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