margin

scalatags.generic.Styles.margin
object margin extends PixelStyle

The margin CSS property sets the margin for all four sides. It is a shorthand to avoid setting each side separately with the other margin properties: margin-top, margin-right, margin-bottom and margin-left.

Negative values are also allowed.

MDN

Attributes

Graph
Supertypes
class PixelStyle
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
margin.type

Members list

Value members

Inherited methods

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

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:
PixelStyle
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val auto: StylePair[Builder, _]

auto is replaced by some suitable value, e.g. it can be used for centering of blocks.

auto is replaced by some suitable value, e.g. it can be used for centering of blocks.

MDN

Attributes

Inherited fields

Attributes

Inherited from:
PixelStyle