WebColumn
✖
WebColumn
Details and Options


- WebColumn is used to arrange and style expressions on a webpage.
- WebColumn can be used with WebRow and WebItem to provide a webpage layout.
- WebColumn[expr,spec1,spec2,…] allows the speci to be any list or sequence of the following:
-
opt1val1,… explicit options "class" a named class name from the current stylesheets color directive color (Red, RGBColor[…], …) size directive a size (width, {width,height}, …) InterfaceSwitched[…] switch formatting based on the environment Scaled[…] dimension relative to window size n (any number) dimension with pixel size n Italic text italic Bold text bold Underlined text underlined Dashed border drawn dashed Dotted border drawn dotted Thickness[…],Thick,Thin border thickness Mouseover[…] switch formatting based on mouseover - A few common explicit options include:
-
Background background color FontSize font size FontFamily font family FontSlant font slant (Plain, Italic, …) FontWeight font weight (Plain, Bold, …) Alignment alignment of the content Scrollbars scrollbar specification Frame whether to put a frame around the plot FrameStyle style specifications for the frame ImageMargins absolute margins to leave around the item - You can specify an option that is an arbitrary CSS property, like "box-shadow" "10px 5px 5px black".
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (2)Survey of the scope of standard use cases
By default, a WebColumn expands to fit the available viewport:

https://wolfram.com/xid/0cg56k236-kiz1f5

When used inside a WebRow, it will expand to fit the remaining size:

https://wolfram.com/xid/0cg56k236-ysfmq9

The second argument can be used to specify the size of the element:

https://wolfram.com/xid/0cg56k236-0u9st3

A list can be used to specify width and height:

https://wolfram.com/xid/0cg56k236-z5p805

Use Automatic to specify that the size should fit the content, or Full to specify that it should fit all the remaining space:

https://wolfram.com/xid/0cg56k236-q1tg01

Options (10)Common values & functionality for each option
Alignment (1)

https://wolfram.com/xid/0cg56k236-f912w5
Use the Alignment option to specify how the contents should be aligned within the available area:

https://wolfram.com/xid/0cg56k236-mohqc7


https://wolfram.com/xid/0cg56k236-7f56h6


https://wolfram.com/xid/0cg56k236-jf7rol

Background (1)
The Background option can be used to specify a background color using any color specification, such as RGBColor:

https://wolfram.com/xid/0cg56k236-da9j62

Any CSS specification can be used:

https://wolfram.com/xid/0cg56k236-f78hrq

FontFamily (1)
FontSize (1)
The FontSize option accepts a variety of specifications and allows for inheritance:

https://wolfram.com/xid/0cg56k236-k3u53k

FontSlant (1)
FontWeight (1)
Use FontWeight to specify how heavy the characters in a font should be:

https://wolfram.com/xid/0cg56k236-piw5mv

The Bold directive can be given instead of explicitly using the FontWeight option:

https://wolfram.com/xid/0cg56k236-p5ktxd

Frame (1)
FrameStyle (1)
ImageMargins (1)
Scrollbars (1)
Specify both horizontal and vertical scrollbars for WebColumn:

https://wolfram.com/xid/0cg56k236-wiwxri

Use only a vertical scrollbar:

https://wolfram.com/xid/0cg56k236-838xha

Properties & Relations (3)Properties of the function, and connections to other functions
InterfaceSwitched can be used to switch the content of a WebColumn based on viewport size:

https://wolfram.com/xid/0cg56k236-3jv70p

InterfaceSwitched can be used to switch the value of a property based on viewport size:

https://wolfram.com/xid/0cg56k236-68d8k9

Specify a layout that expands to fit the viewport on a mobile device:

https://wolfram.com/xid/0cg56k236-8kbkml

Mouseover can be used to wrap any specification:

https://wolfram.com/xid/0cg56k236-88wvfo

ExportString can be used to compile WebColumn to HTML:

https://wolfram.com/xid/0cg56k236-hevn4x

Possible Issues (1)Common pitfalls and unexpected behavior
CloudDeploy uploads the HTML generated from the page expression at the time it is executed:

https://wolfram.com/xid/0cg56k236-6p10t4


https://wolfram.com/xid/0cg56k236-8ub30y
Use Delayed to cause the page to be generated anew on every webpage request:

https://wolfram.com/xid/0cg56k236-wrx1zk


https://wolfram.com/xid/0cg56k236-6asoho
Neat Examples (2)Surprising or curious use cases

https://wolfram.com/xid/0cg56k236-hk3n22

Now test how it looks with some content:

https://wolfram.com/xid/0cg56k236-quhu1c

Write a layout in which the order of the elements depends on the width of the screen:

https://wolfram.com/xid/0cg56k236-vd1al0

Wolfram Research (2021), WebColumn, Wolfram Language function, https://reference.wolfram.com/language/ref/WebColumn.html.
Text
Wolfram Research (2021), WebColumn, Wolfram Language function, https://reference.wolfram.com/language/ref/WebColumn.html.
Wolfram Research (2021), WebColumn, Wolfram Language function, https://reference.wolfram.com/language/ref/WebColumn.html.
CMS
Wolfram Language. 2021. "WebColumn." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WebColumn.html.
Wolfram Language. 2021. "WebColumn." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WebColumn.html.
APA
Wolfram Language. (2021). WebColumn. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WebColumn.html
Wolfram Language. (2021). WebColumn. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WebColumn.html
BibTeX
@misc{reference.wolfram_2025_webcolumn, author="Wolfram Research", title="{WebColumn}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/WebColumn.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_webcolumn, organization={Wolfram Research}, title={WebColumn}, year={2021}, url={https://reference.wolfram.com/language/ref/WebColumn.html}, note=[Accessed: 29-March-2025
]}