New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@citizensadvice/background-position

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citizensadvice/background-position

The background-position property sets the starting position of a background image. This can only be used with a background image.

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Background-position npm (scoped)

The background-position property sets the starting position of a background image. This can only be used with a background image.

Classes

.bg-center    { background-repeat: no-repeat; background-position: center center    }
.bg-top       { background-repeat: no-repeat; background-position: top center       }
.bg-right     { background-repeat: no-repeat; background-position: center right     }
.bg-bottom    { background-repeat: no-repeat; background-position: bottom center    }
.bg-left      { background-repeat: no-repeat; background-position: center left      }

Responsive background-position classes

To apply specific classes at set screen widths, use the following classes:

Class nameDescription
[aboveClassName]-nsScreens with a min-width of 48rem
[aboveClassName]-mScreens with widths from 48rem to 64rem
[aboveClassName]-lScreens with a min-width of 64rem

Examples

<div class="bg-center bg-left-ns">...</div>
<div class="bg-left bg-right-ns">...</div>
<div class="bg-right bg-left-ns">...</div>

Installation

$ npm install @citizensadvice/backround-position

now import into your stylesheet...

@import '@citizensadvice/background-position/index.scss';

You can also make use of the unpkg service, try adding the link below to the head of your HTML file

<link
  src="https://unpkg.com/@citizensadvice/background-position@latest/build/background-position.css"
/>

FAQs

Package last updated on 04 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc