CSS Builder

The Complete CSS Builder Guide

How box-shadow, gradients, flexbox alignment and border-radius actually work, and how to get the most out of the visual builder.

Open CSS Builder

Understanding Box Shadow

box-shadow: [inset] offset-x offset-y blur spread color;
offset-x / offset-y - how far the shadow is pushed horizontally / vertically
blur - how soft the shadow's edge is (0 = hard edge)
spread - grows or shrinks the shadow shape before blurring
inset - draws the shadow inside the element instead of outside it

A larger blur value with a small spread tends to look the most natural, mimicking real ambient light. Negative offsets push the shadow up and to the left; positive offsets push it down and to the right.

Linear vs. Radial Gradients

A linear gradient transitions colors along a straight line at a chosen angle - 0deg points up, 90deg points right, 180deg points down, and so on. A radial gradient instead radiates color outward from a center point, which is better suited to spotlight or glow effects.

Every gradient is built from an ordered list of color stops, each with a position along the gradient (0% to 100%). Adding more stops lets you build multi-color transitions instead of a simple two-color fade; the builder keeps stops sorted so the preview always renders correctly regardless of the order you add them in.

Flexbox Playground Basics

PropertyControls
flex-directionWhich way the main axis runs - row (left-to-right) or column (top-to-bottom), plus reversed variants
flex-wrapWhether items are forced onto one line or allowed to wrap onto multiple lines
justify-contentHow items are spaced along the main axis
align-itemsHow items are aligned along the cross axis
flex-grow / flex-shrink / flex-basisPer-item rules for how each box grows, shrinks, and starts sizing relative to its siblings

Adjust the container controls first to set the overall layout direction and spacing, then fine-tune individual items with their own grow/shrink/basis controls to see exactly how flexbox distributes space.

Border Radius & Independent Corners

border-radius accepts up to four values - top-left, top-right, bottom-right, bottom-left, in that clockwise order - so each corner can be rounded independently. Setting all four to the same value produces a classic rounded rectangle; setting them to 50% on a square element produces a perfect circle.

Using unequal corner values is a common way to create distinctive "blob" or asymmetric card shapes. The unit choice matters too: percentage values scale relative to the element's own size, while pixel values stay fixed regardless of how big the element is.

Frequently Asked Questions

Can box-shadow have more than one shadow layer?

Yes - CSS lets you stack multiple shadows on one element by comma-separating several offset/blur/spread/color groups (for example a tight dark shadow plus a soft ambient one). This builder generates a single shadow per declaration; to combine several, generate each one here and join the resulting declarations with commas yourself.

Why doesn't the angle control apply to radial gradients?

A linear gradient travels along one straight line, so a single angle fully describes its direction. A radial gradient instead radiates outward from a center point in every direction at once, so there's no single angle to set - that's why the angle slider hides itself when you switch to radial in this builder.

Does align-items control spacing between wrapped flex rows?

No - align-items controls how items line up on the cross axis within a single flex line. Once flex-wrap creates multiple lines, the space distributed between those lines is controlled by a separate property, align-content, which this builder doesn't expose. If your wrapped layout needs specific spacing between rows, add align-content by hand in your stylesheet.

What's the difference between flex-grow, flex-shrink, and flex-basis?

flex-basis sets an item's starting size before extra space is distributed. flex-grow controls how much of any leftover space that item claims relative to its siblings (0 means it won't grow). flex-shrink controls how much it's allowed to shrink relative to siblings when there isn't enough room (0 means it won't shrink).

Why does my box-shadow look cut off?

A box-shadow renders outside the element's border box, so if a parent container has overflow: hidden, part of the shadow can be clipped. Increasing the parent's padding or removing overflow: hidden on that ancestor usually fixes it.

What does the "Link all corners" toggle actually do?

It sets all four corners to the same value at once, which covers the common case of a uniformly rounded box. Turn it off to adjust each of the four corner sliders independently and create asymmetric shapes.

Open CSS Builder