LayoutCSS Docs Showcase
  • Showcase
  • components

  • Area
  • Box
  • Center
  • Extender
  • Grid
  • Icon
  • Ledge
  • Outsider
  • Rack
  • Sidebar
  • Slider
  • Stack
  • Switcher
  • Utilities

  • align-self
  • bg-img
  • flex
  • font-size
  • h
  • hide
  • line-height
  • p-child
  • p-recursive
  • p
  • ratio
  • relative
  • w
  • z-index
  • bg-img

    ...

    The Bg-img utility let you define a background image on any element (not only LayoutCSS components).

    The background image has the following CSS properties:

    [bg-img]{ background-repeat: no-repeat; background-position: center; background-size: cover; }

    Examples:

    To use this utility you just have give it the path of your image.

    some text...