monks/grid_template_columns
The grid-template-columns CSS property defines the line names and track sizing functions of the {{glossary(“grid column”, “grid columns”)}}.
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,
autorepresents the range between the minimum and maximum values described above. In most cases, this behaves similarly tominmax(min-content,max-content). > [!NOTE] >autotrack sizes (and onlyautotrack sizes) can be stretched by the {{cssxref(“align-content”)}} and {{cssxref(“justify-content”)}} properties. Therefore, by default, anauto-sized track will take up any remaining space in the grid container.
pub fn length(value: monks_of_style.Length) -> #(String, String)
length value of grid-template-columns
pub const max_content: #(String, String)
- : Is a keyword representing the largest maximal content contribution of the grid items occupying the grid track. For example, if the first element of the grid track contains the sentence “Repetitio est mater studiorum” and the second element contains the sentence “Dum spiro, spero”, maximal content contribution will be defined by the size of the largest sentence among all of the grid elements - “Repetitio est mater studiorum”.
pub const min_content: #(String, String)
- : Is a keyword representing the largest minimal content contribution of the grid items occupying the grid track. For example, if the first element of the grid track contains the sentence “Repetitio est mater studiorum” and the second element contains the sentence “Dum spiro, spero”, minimal content contribution will be defined by the size of the largest word among all of the sentences in the grid elements - “studiorum”.
pub const none: #(String, String)
- : Indicates that there is no explicit grid. Any columns will be implicitly generated and their size will be determined by the {{cssxref(“grid-auto-columns”)}} property.
pub fn raw(value: String) -> #(String, String)
Enter a raw string value for grid-template-columns
pub const revert_layer: #(String, String)