Complete reference for column-span.

This commit is contained in:
Rodrigo Girão Serrão
2022-12-19 18:45:38 +00:00
parent 8c45f297ae
commit 9816fdb11b

View File

@@ -1 +1,42 @@
# Column-span
The `column-span` style specifies how many rows a widget will span in a grid layout.
## Syntax
```sass
column-span: <INTEGER>
```
## Example
The example below shows a 4 by 4 grid where many placeholders span over several columns.
=== "Output"
```{.textual path="docs/examples/styles/column_span.py"}
```
=== "column_span.py"
```py
--8<-- "docs/examples/styles/column_span.py"
```
=== "column_span.css"
```css
--8<-- "docs/examples/styles/column_span.css"
```
## CSS
```sass
column-span: 3
```
## Python
```py
widget.styles.column_span = 3
```