how can we set the margin for an element
Answers
Answered by
14
Explanation:
You can set the margin property to auto to horizontally center the element within its container. The element will then take up the specified width, and the remaining space will be split equally between the left and right margins.
Answered by
16
Explanation:
the CSS margin property is used to create space around elements , outside of any defined border
Similar questions