margin

object margin extends Style[String]

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.

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

class Style[String]
class Key
class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val auto: StyleSetter

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

Inherited fields

override val name: String
Inherited from
Style