-
Notifications
You must be signed in to change notification settings - Fork 8
Container
Giorgio Garofalo edited this page Feb 22, 2025
·
8 revisions
Image you want to make a row with two columns, each one with a heading and some text below. The following is what a novice might attempt:
<!-- WRONG! -->
.row alignment:{center} gap:{1cm}
## Left
Text on left column.
## Right
Text on right column.
As mentioned in the Stacks page:
In order to understand which elements they [stack functions] must handle, they rely on the strict Markdown concept of block, an isolated chunk of the document [...]
Rendering the previous snippet brings us to this (incorrect) result:

Some may then use columns:
<!-- Could be improved -->
.row alignment:{center} gap:{1cm}
.column cross:{start}
## Left
Text on left column.
.column cross:{start}
## Right
Text on right column.
This works, but the concept isn't really correct: we don't want some layout rule, we just want to reset the document flow back to normal. This is what the .container
layout does: grouping elements together according to the natural flow of the document.
<!-- Correct! -->
.row alignment:{center} gap:{1cm}
.container
## Left
Text on left column.
.container
## Right
Text on right column.
Result:

Optional parameters:
Parameter | Description | Accepts | Default |
---|---|---|---|
width |
Box width constraint. | Size |
No constraint. |
height |
Box height constraint. | Size |
No constraint. |
fullwidth |
Whether to take up the parent's full width. Overridden by width . |
Boolean |
False |
foreground |
Text color. | Color |
Document's default. |
background |
Background color. | Color |
(none) |
border |
Border color. | Color |
Browser's default if borderwidth is set, none otherwise. |
borderwidth |
Border size. | Sizes |
Browser's default if border is set, none otherwise. |
borderstyle |
Border type. |
normal , dashed , dotted , double
|
normal if border or borderwidth is set, none otherwise. |
margin |
Whitespace outside content. | Sizes |
(none) |
padding |
Whitespace around content. | Sizes |
(none) |
radius |
Corner/border radius. | Sizes |
(none) |
alignment |
Content alignment. |
start , center , end
|
Browser's default. |
- Figures
- Image size
- TeX formulas
- Table caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Page breaks
- Text symbols (text replacement)
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Localization
- Including other Quarkdown files
- Importing external libraries
- Document metadata
- Theme
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Table of contents
- Stacks (row, column, grid)
- Container
- Align
- Clip
- Box
- Collapsible
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Generators
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more