Input
width:200px padding:20px border:2px margin:24px
Total width
292px (content-box)
Design Tools
Adjust width, height, padding, border, and margin with a live box-model diagram. Compare content-box vs border-box occupancy and copy the matching CSS.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
设计配色
可视化
实际占用空间
CSS 代码
Input
width:200px padding:20px border:2px margin:24px
Total width
292px (content-box)
In content-box, width/height cover the content only. In border-box, width/height include content, padding, and border.
Tools
Continue with another translated tool for a nearby task.
Flexbox Generator
Tune flex-direction, justify-content, align-items, wrap, and gap with a live preview. Add or remove boxes to see wrapping and spacing, then copy the generated CSS (and HTML scaffold) into your project.
CSS Grid Generator
Set column and row counts plus gaps to generate a basic display:grid layout. Preview the track structure, try quick templates, and copy CSS or HTML for admin layouts and card grids.
CSS Unit Converter
Convert among px, rem, em, pt, vw, vh, and %. Customize root font size, parent font size, and viewport size for responsive work and design-to-code handoff.