2. Margin property is
used to set top marginof an
element.
O top
bottom
Answers
Answered by
1
Answer:
The CSS margin properties are used to create space around elements, outside of any defined borders.
With CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left). ❣
Answered by
3
Margin property of CSS can be used in multiple ways like...
1. Syntax: margin: 5px;
Now this means margin 5px in all sides.
2. Syntax: margin: 5px 10px;
This means margin 5px on top-bottom and 10px on right-left.
3. Syntax: margin: 1px 2px 3px 4px;
Now this means margin 1px on top, 2px on right, 3px on bottom and 4px on left.
To remember this, use code TRBL.
Hope this helps you :)
Similar questions