✦ FREE ONLINE TOOL
Website Spacing Calculator
Calculate and preview website margins, padding, gaps and section spacing. Generate clean CSS with responsive spacing options in seconds.
Spacing Settings
Adjust the values below to customize your website layout spacing.
Margin
Padding
Layout Spacing
Live Spacing Preview
See how your spacing values affect a sample website content box.
Website Layout Preview
Illustrative spacing diagram
Your Website Content
Sample content area
Outer area
Margin
Padding
Content
Vertical Margin48px
Horizontal Margin48px
Total Padding128px
Preview uses a visual scale so very large spacing values remain visible. The CSS output below contains your exact entered values.
Generated CSS
Copy the CSS and apply it to your website elements or stylesheet.