CSS Box
Last updated
Last updated
Creates CSS box model notation by combining four values (top, right, bottom, left) into a single space-separated string. This is the standard format used for CSS properties like margin, padding, and border-width.
top
The top value
Number
No
right
The right value
Number
No
bottom
The bottom value
Number
No
left
The left value
Number
No
value
The combined CSS box value (e.g., "10 20 10 20")
Text
Drag the CSS Box node into your graph.
Set values for each side: "top" (e.g., 10), "right" (e.g., 20), "bottom" (e.g., 10), "left" (e.g., 20).
Run the graph—your output will be "10 20 10 20".
Use this output with CSS properties like margin, padding, or border-width.
This format follows the CSS standard: top, right, bottom, left (clockwise from the top).
CSS has shorthand rules: if all four values are the same, you can use a single value.
When using with CSS, you may need to add units (like "px" or "rem") after the generated string.
CSS Function: For creating other CSS functions like var(), calc(), etc.
CSS Accessible Clamp: For generating responsive typography values.
String Join: For combining strings with custom separators.
Margins and Padding: Define spacing around elements.
Border Width: Set different border widths for each side of an element.
Position Offsets: Define top, right, bottom, left values for positioned elements.
Design Tokens: Create standardized spacing values for your design system.