CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS margin bottom Property

CSS margin-bottom Property



The margin-bottom property is used to set the bottom margin of an element. We can use negative values in it.


Default Value:-


Its default value is 0.




Its syntax is:- margin-bottom: length | auto | initial | inherit;


Further Explanation:-


Value Description
length Specifies a fixed bottom margin in px, cm, em, etc.
% Specifies a bottom margin in percent of the width of the containing element
auto The browser calculates a bottom margin
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS