Margin affects the space oustide this box, while padding affects the space inside this box.
Enter different margin and padding values, and select a unit value from the options below.
Note the resulting CSS syntax for the style declaration.
NOTE: margin and padding shorthand notation apply to all ( top, right, bottom, and left ) sides of an object.
margin and padding default to pixel ( px ) values if no length unit is specified.
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.