Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions en/syntax/tables/multiline.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,50 @@ The value `N` must be a positive integer.
|| Text | Text | Text ||
|#

## Custom cell sizes {#size}

Cell sizes can be controlled using attributes.

{% list tabs %}

- Cell width

To set a custom cell width, use the `{style="width: 400px"}` syntax inside the cell.

```markdown
#|
|| **Header1** {style="width: 400px"} | **Header2** ||
|| Text | Text ||
|#
```

**Result**

#|
|| **Header1** {style="width: 400px"} | **Header2** ||
|| Text | Text ||
|#

- Cell height

To set a custom cell height, use the `{style="height:100px"}` syntax inside the cell.

```markdown
#|
|| **Header1** {style="height:100px"} | **Header2** ||
|| Text | Text ||
|#
```

**Result**

#|
|| **Header1** {style="height:100px"} | **Header2** ||
|| Text | Text ||
|#

{% endlist %}

## Cell Merging {#span}

Cells can be merged vertically using the "^" symbol:
Expand Down
14 changes: 7 additions & 7 deletions ru/syntax/tables/multiline.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
на двух строчках
|
- Текст 1
- Текст 2[cell_merging_guide.md](..%2F..%2F..%2F..%2F..%2FDocuments%2Fcell_merging_guide.md)
- Текст 2
- Текст 3
- Текст 4||
|#
Expand All @@ -54,8 +54,8 @@
||Текст
на двух строчках
|
- Текс 1
- Тект 2
- Текст 1
- Текст 2
- Текст 3
- Текст 4||
|#
Expand Down Expand Up @@ -182,11 +182,11 @@

- Ширина ячейки

Для установки пользовательской ширины ячейки используйте синтаксис `{width=400px}` внутри ячейки.
Для установки пользовательской ширины ячейки используйте синтаксис `{style="width: 400px"}` внутри ячейки.

```markdown
#|
|| **Заголовок1** {width=400px} | **Заголовок2** ||
|| **Заголовок1** {style="width: 400px"} | **Заголовок2** ||
|| Текст | Текст ||
|#
```
Expand All @@ -200,11 +200,11 @@

- Высота ячейки

Для установки пользовательской высоты ячейки используйте синтаксис `{height=100px}` внутри ячейки.
Для установки пользовательской высоты ячейки используйте синтаксис `{style="height:100px"}` внутри ячейки.

```markdown
#|
|| **Заголовок1** {height=100px} | **Заголовок2** ||
|| **Заголовок1** {style="height:100px"} | **Заголовок2** ||
|| Текст | Текст ||
|#
```
Expand Down
Loading