Nine keyword positions: bg-center, bg-top, bg-left-bottom… This family contains 9 generated classes in Nakshora 3.0.

Classes#

ClassGenerated CSS
bg-bottombackground-position: bottom;
bg-centerbackground-position: center;
bg-leftbackground-position: left;
bg-left-bottombackground-position: left bottom;
bg-left-topbackground-position: left top;
bg-rightbackground-position: right;
bg-right-bottombackground-position: right bottom;
bg-right-topbackground-position: right top;
bg-topbackground-position: top;

Example#

example
html
<div class="bg-no-repeat bg-center bg-cover">…</div>

Responsive & variants#

Every class here accepts screen prefixes (sm:xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • Arbitrary positions: bg-[center_20%]

utilities/backgrounds/gradients|Gradients · colors/index|Colors