monks/grid_template

The grid-template CSS property is a shorthand property for defining {{glossary(“grid column”, “grid columns”)}}, {{glossary(“grid_row”, “grid rows”)}}, and {{glossary(“grid areas”, “grid areas”)}}.

Values

pub const auto_: #(String, String)

auto value of grid-template

pub const auto_fill: #(String, String)

auto-fill value of grid-template

pub const auto_fit: #(String, String)

auto-fit value of grid-template

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of grid-template

pub const max_content: #(String, String)

max-content value of grid-template

pub const min_content: #(String, String)

min-content value of grid-template

pub const none: #(String, String)
  • : Sets all three longhand properties to none, meaning there is no explicit grid. There are no named grid areas. Rows and columns will be implicitly generated; their size will be determined by the {{cssxref(“grid-auto-rows”)}} and {{cssxref(“grid-auto-columns”)}} properties. This is the default value.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for grid-template

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const subgrid: #(String, String)

subgrid value of grid-template

pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for grid-template. It will be wrapped in var() and have -- prepended.

Search Document