/

On this page

Element styling properties

Several functions, such as .container and .heading, share a common set of styling parameters to customize colors, spacing, borders, and text appearance of the element they produce.

Parameters

ParameterDescriptionAcceptsDefault
foregroundText color.ColorDocument’s default
backgroundBackground color.ColorNone
borderBorder color.ColorBrowser’s default if borderwidth is set, none otherwise
borderwidthBorder thickness.SizesBrowser’s default if border is set, none otherwise
borderstyleBorder type.normal, dashed, dotted, doublenormal if border or borderwidth is set, none otherwise
marginWhitespace outside the element.SizesNone
paddingWhitespace between the border and the content.SizesNone
radiusCorner (and border) radius.SizesNone
alignmentContent alignment.start, center, endBrowser’s default
textalignmentText alignment.start, center, end, justifyFollows alignment if set
fontsize, fontweight, fontstyle, fontvariant, textdecoration, textcaseText transformation. See Advanced text formatting for the accepted values.None

Example

Example 1

.container fullwidth:{yes} borderstyle:{dashed} padding:{1cm} fontsize:{medium} fontstyle:{italic} fontvariant:{smallcaps}
    This is a styled container. Fancy, isn't it?

    Quarkdown can truly give life to complex layouts with ease.

This is a styled container. Fancy, isn’t it?

Quarkdown can truly give life to complex layouts with ease.