CSS Padding - The CSS Padding properties are used to generate space around an element's content,inside of any defined borders.
There are properties for setting the padding for each side of an element (top, right, bottom, and left).
<div style ="padding:20px 10px 15px 25px;">
content here
</div>
-top padding is 20px
-right padding is 10px
-bottom padding is 15px
-left padding is 25px
CSS Margin - The css margin properties are used to create space around elements,outside of any defined borders.
There are properties for setting the padding for each side of an element(to.right,bottom, and left).
<div style ="margin:20px 10px 15px 25px;">
content here
</div>
-top margin is 20px
-right margin is 10px
-bottom margin is 15px
-left margin is 25px
There are properties for setting the padding for each side of an element (top, right, bottom, and left).
<div style ="padding:20px 10px 15px 25px;">
content here
</div>
-top padding is 20px
-right padding is 10px
-bottom padding is 15px
-left padding is 25px
CSS Margin - The css margin properties are used to create space around elements,outside of any defined borders.
There are properties for setting the padding for each side of an element(to.right,bottom, and left).
<div style ="margin:20px 10px 15px 25px;">
content here
</div>
-top margin is 20px
-right margin is 10px
-bottom margin is 15px
-left margin is 25px
No comments:
Post a Comment