Preview how margin, padding, and gap values affect your layout with this interactive tool. Adjust spacing in real-time and instantly get clean CSS code for your elements.
See how margin, padding, and content interact within the element in real-time.
Individually adjust top, right, bottom, and left spacing values with sliders or number inputs.
Use gap settings specifically for Flexbox and Grid layouts.
Generate and copy valid CSS code for your layout instantly.
Each spacing area is color-coded to help you visually understand its effect.