backgroundAttachment

scalatags.generic.Styles.backgroundAttachment
object backgroundAttachment extends Style

If a background-image is specified, the background-attachment CSS property determines whether that image's position is fixed within the viewport, or scrolls along with its containing block.

MDN

Attributes

Graph
Supertypes
class Style
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Inherited methods

def :=[Builder, T](v: T)(implicit ev: StyleValue[Builder, T]): StylePair[Builder, T]

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Attributes

Inherited from:
Style
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val fixed: StylePair[Builder, String]

This keyword means that the background image will not scroll with its containing element, instead remaining stationary within the viewport.

This keyword means that the background image will not scroll with its containing element, instead remaining stationary within the viewport.

MDN

Attributes

lazy val local: StylePair[Builder, String]

This keyword means that the background image will not scroll with its containing element, but will scroll when the element's content scrolls: it is fixed regarding the element's content.

This keyword means that the background image will not scroll with its containing element, but will scroll when the element's content scrolls: it is fixed regarding the element's content.

MDN

Attributes

lazy val scroll: StylePair[Builder, String]

This keyword means that the background image will scroll within the viewport along with the block the image is contained within.

This keyword means that the background image will scroll within the viewport along with the block the image is contained within.

MDN

Attributes