monks/grid_template_rows

The grid-template-rows CSS property defines the line names and track sizing functions of the {{glossary(“grid_row”, “grid rows”)}}.

Values

pub const auto_: #(String, String)
  • : As a maximum value, it represents the largest {{cssxref(“max-content”)}} size of the items in that track. As a minimum value, it represents the largest minimum size of items in that track (specified by the {{cssxref(“min-width”)}}/{{cssxref(“min-height”)}} properties of the items). This often corresponds to the {{cssxref(“min-content”)}} size, but not always. If used outside of {{cssxref(“minmax”, “minmax()”)}} notation, auto represents the range between the minimum and maximum values described above. In most cases, this behaves similarly to minmax(min-content,max-content). > [!NOTE] > auto track sizes (and only auto track sizes) can be stretched by the {{cssxref(“align-content”)}} and {{cssxref(“justify-content”)}} properties. Therefore, by default, an auto-sized track will take up any remaining space in the grid container.
pub const auto_fill: #(String, String)

auto-fill value of grid-template-rows

pub const auto_fit: #(String, String)

auto-fit value of grid-template-rows

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-rows

pub const max_content: #(String, String)
  • : A keyword representing the largest maximal content contribution of the grid items occupying the grid track.
pub const min_content: #(String, String)
  • : A keyword representing the largest minimal content contribution of the grid items occupying the grid track.
pub const none: #(String, String)
  • : A keyword meaning that there is no explicit grid. Any rows will be implicitly generated and their size will be determined by the {{cssxref(“grid-auto-rows”)}} property.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for grid-template-rows

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

subgrid value of grid-template-rows

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

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

Search Document